Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Separate new and old

...

...

...

...

...

titleEngine 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(<hashFn>, <toHash>) - uses the method specified by the hashFn name to return the hashed toHash string


Info
titleEngine Compatibility

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
titleSecurity

Based on the recommendations of NIST SP 800-131A, avoid MD5 where collision resistance is required, such as digital signatures.

...

Code Block
themeConfluence
langjavascript
  d = math:md5("Hello" + foo)

sha1

Warning
titleSecurity

Based on the recommendations of NIST SP 800-131A, avoid SHA-1 where collision resistance is required, such as digital signatures.

...