Skip to main content

Hash functions

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).

Examples

Run in Playground
  • Result

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

Examples

Run in Playground
  • Result

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).

Examples

Run in Playground
  • Result

hash_sha512()

Returns a SHA512 hash value for the input value.

Arguments

  • source: The value to be hashed.

Returns

The sha512 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 511).

Examples

Run in Playground
  • Result

Run in Playground
  • Result