Skip to main content
HASH

Computes the hash value of a text using a specified algorithm (MD5 or SHA-1)

Updated over a week ago

Description

The HASH() function allows you to calculate the hash value (checksum) of a text string using a specified cryptographic algorithm. This can be useful for data integrity checks or secure storage of sensitive information.

Syntax

HASH(”md5”/”sha1”, text)

Output

text

Variables

  1. algorithm: The cryptographic algorithm to use for hashing. It can be one of the following options: "md5" or “sha1”.

  2. text: The input text string that you want to hash.

Example - md5

HASH("md5",`Data`)

ID

Data

HASH

1

Hello, World!

65a8e27d8879283831b664bd8b7f0ad4

2

Savant is awesome

83e999ae66b90fb41a69012b561e0f77

3

12345

827ccb0eea8a706c4c34a16891f84e7b

Example - sha1

HASH("Sha1",`Data`)

ID

Data

HASH

1

Hello, World!

0a0a9f2a6772942557ab5355d76af442f8f65e01

2

Savant is awesome

164d00271cf6d5c25320bf9e374a909245b96185

3

12345

8cb2237d0679ca88db6464eac60da96345513964

Did this answer your question?