ref: b7fac914c8abd92c0a1e2a9b65d04c3479221be5
dir: /libcryptohash/test/md5-test.myr/
use std
use cryptohash
const main = {
print(cryptohash.md5(""))
print(cryptohash.md5("h"))
/* 64 byte block */
print(cryptohash.md5("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))
/* tail spanning */
print(cryptohash.md5("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb"))
}
const print = {b
for x in b
if (x <= 0xf)
std.put("0%xb", x)
else
std.put("%xb", x)
;;
;;
std.put("\n")
}