md5.pl -- MD5 hashes
Compute MD5 hashes from a Prolog string. This library provides a
lightweight alternative to the general secure hash interface provided by
library(crypto) from the ssl
package.
- md5_hash(+Data, -Hash, +Options) is det
- Hash is the MD5 hash of Data, The conversion is controlled by
Options:
- encoding(+Encoding)
- If Data is a sequence of character codes, this must be
translated into a sequence of bytes, because that is what
the hashing requires. The default encoding is
utf8
. The other meaningful value isoctet
, claiming that Data contains raw bytes.