SAPO::Utility.Crypto->sha256

This method will return a sha256 hash of the input string.

This is static method.

Syntax

SAPO.Utility.Crypto.sha256(string)

Compatibility

All browsersYes

Depends

Input Parameters

  • (string) string : Input string

Sample

 http://js.sapo.pt/SAPO/Utility/Crypto/sample/

Example

alert(SAPO.Utility.Crypto.sha256('string to convert to sha256 hash'));

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found