get checksum of file or string using various digest algorithms
res = hash(fd, algorithm) res = hash(string, algorithm)
hash result (a string)
a matrix of file descriptors returned by the function mopen.
a string or a matrix of strings
a string (the hashing algorithm)
hash get the checksum of a file or a string using the hashing function algorithm. The available functions are:
| 'crc32' | crc32 chechsum |
| 'md5' | Message-Digest Algorithm 5 |
| 'sha1' | Secure Hash Algorithm 1 (160 bits) |
| 'sha2', 'sha256' | Secure Hash Algorithm 2 (256 bits) |
| 'sha3-224' | Secure Hash Algorithm 3 (224 bits) |
| 'sha3-256' | Secure Hash Algorithm 3 (256 bits) |
| 'sha3-384' | Secure Hash Algorithm 3 (384 bits) |
| 'sha3-512' | Secure Hash Algorithm 3 (512 bits) |
| Version | Description |
| 6.1.1 | hash() introduced. |