Scalar fucntions

Hash functions

Function NameDescription
hash_md5()Returns a MD5 hash value for the input value.
hash_sha256()Returns a SHA256 hash value for the input value.
hash_sha1()Returns a sha1 hash value for the input value.

hash_md5()

Returns an MD5 hash value for the input value.

Arguments

  • source: The value to be hashed.

Returns

The MD5 hash value of the given scalar, encoded as a hex string (a string of characters, each two of which represent a single Hex number between 0 and 255).

Example

hash_md5(source)
['sample-http-logs']
| project md5_hash = hash_md5( content_type )
  • Result
{
  "md5_hash": "b980a9c041dbd33d5893fad65d33284b"
}

hash_sha256()

Returns a sha256 hash value for the input value.

Arguments

  • source: The value to be hashed.

Returns

The sha256 hash value of the given scalar, encoded as a hex string (a string of characters, each two of which represent a single Hex number between 0 and 255).

Example

hash_sha256(source)
['sample-http-logs']
| project sha256_hash = hash_sha256( content_type )
  • Result
{
  "sha256_hash": "bb4770ff4ac5b7d2be41a088cb27d8bcaad53b574b6f27941e8e48e9e10fc25a"
}

hash_sha1()

Returns a sha1 hash value for the input value.

Arguments

  • source: The value to be hashed.

Returns

The sha1 hash value of the given scalar, encoded as a hex string

Example

hash_sha1(source)
['sample-http-logs']
| project sha256_hash = hash_sha1( content_type )
  • Result
{
  "sha256_hash": "15a3add526d9ceb999a9d971bfcb295cca7f0fed"
}

Was this page helpful?