Rebol3 Code Examplex


MD4

A 128-bit cryptographic hash algorithm developed in 1990; it is now considered insecure and obsolete.

Rebol [
    title: "Rosetta code: MD4"
    file:  %MD4.r3
    url:   https://rosettacode.org/wiki/MD4
]

string: "Rosetta Code"
print [
    mold string "has MD4 checksum:" as-green checksum string 'MD4
]

print [
    "^/Available checksums:" mold system/catalog/checksums
]

Output:

"Rosetta Code" has MD4 checksum: A52BCFC6A0D0D300CDC5DDBFBEFE478B

Available checksums: [
    adler32
    crc24
    crc32
    md4
    md5
    ripemd160
    sha1
    sha224
    sha256
    sha384
    sha512
    sha3-224
    sha3-256
    sha3-384
    sha3-512
    xxh3
    xxh32
    xxh64
    xxh128
    tcp
]