SAPO::Utility.Crypto->sha1

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

This is static method.

Syntax

SAPO.Utility.Crypto.sha1(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.sha1('string to convert to sha1 hash'));

Community feedback

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