Hash¶
Returns the hash of the given content.
1 |
|
Parameters¶
string content
The content to be hashed.
Digest hashName
The name of the hash algorithm to be used. If not specified, SHA1
is used.
Returns¶
The hash of the given content in Base64 encoding.
Remarks¶
Hash a content with SHA1 algorithm:¶
1 |
|
Types¶
Digest¶
Types of digest algorithms.
( "SHA1"
| "SHA256"
| "SHA384"
| "SHA512"
)