...
...
...
...
...
title | Engine Compatibility |
---|
...
Encoding Functions
base64encode
base64encode(<str>)
- returns a Base64-encoded string
Decoding Functions
base64decode
base64decode(<str>)
- returns a Base64-decoded string
Hashing Functions
hashFunctions
hashFunctions()
- returns the array of supported hash function names (strings) supported by the current Node engine
hash(
- uses the method specified by the <hashFn>,
)<toHash>
name to return the hashed hashFn
stringtoHash
Info | ||
---|---|---|
| ||
Everything after this note is not supported at this time. |
The math
library provides a number of useful math functions as well as special functions for plane-angle conversions, digests, trigonometry, and great-circle calculations. More are added as needed.
...
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. |
...