Module crypto
Data Types
digest()
digest() = binary()
hash_algorithm()
hash_algorithm() = md5 | sha | sha224 | sha256 | sha384 | sha512
Function Index
hash/2 | Hash data using a specified hash algorithm. |
Function Details
hash/2
hash(Type::hash_algorithm(), Data::iolist()) -> digest()
Type
: the hash algorithmData
: the data to hash
returns: Returns the result of hashing the supplied data using the supplied hash algorithm.
Hash data using a specified hash algorithm.