Overview
...
string my$Crypto$Crypto.Hash(content: string)
...
string my$Crypto.Hash(content: string, hashName: Digest)
Arguments
string content
Content to be hashed
Digest hashName
Name of hash algorithm to be used. If not specified SHA1 is used.
Returns
...
Example
Hash a content with SHA1 algorithm
Code Block | ||
---|---|---|
| ||
var hashedContent = $Crypto.Hash('data to be hashed','SHA1') |