NAME ^

MD5.imc - calculate MD5 checksums

SYNOPSIS ^

  load_bytecode "library/Digest/MD5.imc"
  $P0 = _md5sum("foo")
  _md5_print($P0)

or

  load_bytecode "library/Digest/MD5.imc"
  $P0 = _md5sum("bar")
  $S0 = _md5_hex($P0)

DESCRIPTION ^

This is a pure Parrot MD5 hash routine. Therefore you should run it with the JIT core if possible.

SUBROUTINES ^

_md5sum ^

Pass in a string, returns an Integer array with the result

_md5_hex ^

Pass it the Integer array to get the checksum as string.

_md5_print ^

Pass it the Integer array to print the checksum.

BUGS ^

Only tested so far on i386.


parrot