Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

string $Crypto.Hash(content: string, hashName: Digest)

...

string $Crypto.Hash(content: string, hashName: Digest)

Arguments

string content

...

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
languagejs
var hashedContent = $Crypto.Hash('data to be hashed','SHA1')

Types

Digest