Encoding Functions
base64encode
...
Hashing Functions
hashFunctions
hashFunctions()
- returns the array of supported hash function names (strings) supported by the current Node engine
hash
hash(
- uses the method specified by the <hashFn>,
)<toHash>
name to return the hashed hashFn
stringtoHash
...
Digest functions
md5
Warning | ||
---|---|---|
| ||
Based on the recommendations of NIST SP 800-131A, avoid MD5 where collision resistance is required, such as digital signatures. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
d = math:md5("Hello" + foo) |
sha1
Warning | ||
---|---|---|
| ||
Based on the recommendations of NIST SP 800-131A, avoid SHA-1 where collision resistance is required, such as digital signatures. |
...