Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Note MD5 and SHA-1 are insecure


Info
titleEngine Compatibility

This library has not yet been ported to the New Pico Engine

...

Code Block
themeConfluence
langjavascript
 
     g = math:rad2grad(r);

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.


md5(<str>) - calculate the hex string representing the 16 byte md5 digest of the argument string.

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.



sha1(<str>) - calculate the hex string representing the 20 byte SHA1 digest of the argument string.

...