Skip to main content
Version: Streamsheets 2.5

CRYPTO.HASH

Creates an hash value for given text. The used hash algorithm can be optionally specified. For a list of supported hash algorithms please refer to Hash Algorithms. The used hash algorithms are from the OpenSSL Library. See their docs for more details.

Syntax

=CRYPTO.HASH(Text, [Algorithm])

Arguments

NameTypeDescription
TextStringA text to create hash value for.
Algorithm (optional)StringThe hash algorithm to use. Defaults to "sha256"

Return

The hash value or an Error Code

Examples

FormulaResultComment
=CRYPTO.HASH("hello")
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824By default "sha256" is used.
=CRYPTO.HASH("hello","md5")
5d41402abc4b2a76b9719d911017c592Same text as before but creates an hash using "md5" algorithm.