Hash

hash functions

Scalar hash helpers that return a lowercase hex digest of the input string.

  • hash(text) — SHA1.
  • hash_sha1(text) — SHA1.
  • hash_sha2(text) — SHA256.
  • hash_sha512(text) — SHA512.
  • hash_md5(text) — MD5.

Inputs are converted to string. Outputs are string containing the digest.

Specs

hash(text)
hash_sha1(text)
hash_sha2(text)
hash_sha512(text)
hash_md5(text)

Parameters

  • text: The value to hash (converted to string).

Return value

Lowercase hexadecimal digest of the selected algorithm.

Examples

datatable(s:string)["abc"]
| extend sha1 = hash_sha1(s), sha2 = hash_sha2(s), sha512 = hash_sha512(s), md5 = hash_md5(s)
ssha1sha2sha512md5
abca9993e364706816aba3e25717850c26c9cd0d89dba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f900150983cd24fb0d6963f7d28e17f72