Availability::- use_module(library(sha)).(can be autoloaded)
 sha_hash(+Data, -Hash, +Options) is det
Hash is the SHA hash of Data, The conversion is controlled by Options:
algorithm(+Algorithm)
One of sha1 (default), sha224, sha256, sha384 or sha512
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.
Arguments:
Data- is either an atom, string or code-list
Hash- is a packed string
 sha_hash(+Data, -Hash, +Options) is det
Hash is the SHA hash of Data, The conversion is controlled by Options:
algorithm(+Algorithm)
One of sha1 (default), sha224, sha256, sha384 or sha512
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.
Arguments:
Data- is either an atom, string or code-list
Hash- is a packed string