Skip to content

Hash

SHA-256 and SHA-512 cryptographic hashing.

2 modules

ModuleDescription
SHA-256 HashCalculate SHA-256 cryptographic hash of text
SHA-512 HashCalculate SHA-512 cryptographic hash of text

Modules

SHA-256 Hash

hash.sha256

Calculate SHA-256 cryptographic hash of text

Parameters:

NameTypeRequiredDefaultDescription
textstringYes-Text to hash
encodingstringNoutf-8Text to hash

Output:

FieldTypeDescription
hashstringText encoding
algorithmstringSHA-256 hash (64 hex characters)

SHA-512 Hash

hash.sha512

Calculate SHA-512 cryptographic hash of text

Parameters:

NameTypeRequiredDefaultDescription
textstringYes-Text to hash
encodingstringNoutf-8Text to hash

Output:

FieldTypeDescription
hashstringText encoding
algorithmstringSHA-512 hash (128 hex characters)

Released under the Apache 2.0 License.