|parrotcode: calculate MD5 checksums|
|Contents | Libraries|
MD5.imc - calculate MD5 checksums
load_bytecode "library/Digest/MD5.imc" $P0 = _md5sum("foo") _md5_print($P0)
load_bytecode "library/Digest/MD5.imc" $P0 = _md5sum("bar") $S0 = _md5_hex($P0)
This is a pure Parrot MD5 hash routine. Therefore you should run it with the JIT core if possible.
Pass in a string, returns an Integer array with the result
Pass it the Integer array to get the checksum as string.
Pass it the Integer array to print the checksum.
Only tested so far on i386.