md5.ss: MD5 Message Digest

To load: (require (lib "md5.ss"))

(md5 input-port [hex-encode?])      PROCEDURE

(md5 bytes [hex-encode?])      PROCEDURE

Produces a byte string containing 32 hexadecimal digits (lowercase) that is the MD5 hash of the given input-port or byte string. For example, (md5 #"abc") produces #"900150983cd24fb0d6963f7d28e17f72".

If the optional hex-encode? argument is #f, then the result is a byte string with 16 raw bytes. (The default is to encode the result as described above.)