NAME

MD5.pir - calculates MD5 checksums

SYNOPSIS

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

or

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

DESCRIPTION

This is a pure Parrot MD5 hash routine. 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 from _md5sum to get the checksum as string.

_md5_print

Pass it the Integer array to print the checksum.

BUGS

Still has some limitations on input buffer size, largely due to memory consumption which should be resolved soon.