Skip to main content

Cryptographic Operations

md5

Description: Takes an input parameter and returns an MD5 hash.

In this example, res will have the value "5D41402ABC4B2A76B9719D911017C592".

Example #1
... | eval res=md5("hello")

sha1

Description: Takes an input parameter and returns a SHA-1 hash.

In this example, res will have the value "AAF4C61DDCC5E8A2DABEDE0F3B482CD9AEA9434D".

Example #1
... | eval res=sha1("hello")

sha256

Description: Takes an input parameter and returns a SHA-256 hash.

In this example, res will have the value "2CF24DBA5FB0A30E26E83B2AC5B9E29E1B161E5C1FA7425E73043362938B9824".

Example #1
... | eval res=sha256("hello")

sha512

Description: Takes an input parameter and returns a SHA-512 hash.

In this example, res will have the value

"9B71D224BD62F3785D96D46AD3EA3D73319BFBC2890CAADAE2DFF72519673CA72323C3D99BA5C11D7C7ACC6E14B8C5DA0C4663475C2E5C3ADEF46F73BCDEC043".

Example #1
... | eval res=sha512("hello")