parrotcode: calculates MD5 checksums | |
Contents | Libraries |
MD5.imc - calculates MD5 checksums
load_bytecode "Digest/MD5.imc"
$P0 = _md5sum("foo")
_md5_print($P0)
or
load_bytecode "Digest/MD5.imc"
$P0 = _md5sum("bar")
$S0 = _md5_hex($P0)
This is a pure Parrot MD5 hash routine. 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 from _md5sum to get the checksum as string.
Pass it the Integer array to print the checksum.
Still has some limitations on input buffer size, largely due to memory consumption which should be resolved soon.
|