Hash Functions
This topic describes the hash functions in Graph Studio.
Typographical Conventions
This documentation uses the following conventions in function syntax:
CAPS
: Although SPARQL is case-insensitive, function names and other keywords are written in uppercase for readability.
[ argument ]
: Brackets are used to indicate optional arguments. Arguments without brackets are required.
Functions
- MD5: Returns the MD5 checksum of a string as a hexadecimal string.
- SHA1: Calculates the SHA-1 digest of a string value.
- SHA224: Calculates the SHA-224 digest of a string value.
- SHA256: Calculates the SHA-256 digest of a string value.
- SHA384: Calculates the SHA-384 digest of a string value.
- SHA512: Calculates the SHA-512 digest of a string value.
MD5
This function returns the MD5 checksum of a string as a hexadecimal string.
Syntax
MD5(text)
text
|
string |
The string for which to return the MD5 checksum. |
Returns
string |
The hexadecimal string. |
SHA1
This function calculates the SHA-1 digest of a string.
Syntax
SHA1(text)
text
|
string |
The string for which to calculate the SHA-1 digest. |
Returns
SHA224
This function calculates the SHA-224 digest of a string.
Syntax
SHA224(text)
text
|
string |
The string for which to calculate the SHA-224 digest. |
Returns
string |
The SHA-224 digest. |
SHA256
This function calculates the SHA-256 digest of a string.
Syntax
SHA256(text)
text
|
string |
The string for which to calculate the SHA-256 digest. |
Returns
string |
The SHA-256 digest. |
SHA384
This function calculates the SHA-384 digest of a string.
Syntax
SHA384(text)
text
|
string |
The string for which to calculate the SHA-384 digest. |
Returns
string |
The SHA-384 digest. |
SHA512
This function calculates the SHA-512 digest of a string.
Syntax
SHA512(text)
text
|
string |
The string for which to calculate the SHA-512 digest. |
Returns
string |
The SHA-512 digest. |