13 library(md5): MD5 hashes
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog C-library
        • library(md5): MD5 hashes
          • md5_hash/3
Availability::- use_module(library(md5)).(can be autoloaded)
Source[det]md5_hash(+Data, -Hash, +Options)
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 is octet, claiming that Data contains raw bytes.
Data is either an atom, string, code-list or char-list.
Hash is an atom holding 32 characters, representing the hash in hexadecimal notation