shithub: mc

ref: 124965cc6607aacf1c8a292e9d9bd1b8f2ea5ca4
dir: /libcryptohash/test/md5-test.myr/

View raw version
use std
use cryptohash

use "printhash.use"

const main = {
	print(cryptohash.md5("")[:])
	print(cryptohash.md5("h")[:])
	/* 64 byte block */
	print(cryptohash.md5("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")[:])
	/* tail spanning */
	print(cryptohash.md5("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb")[:])
}