Index...
Centrallix Documentation
|
6.8.7 Cryptographic Functions
Cryptographic Functions:
Function | Description | Standard |
hash(s,a) | Computes the cryptographic hash of string or binary s using the hash function specified in a. Supported hash functions: md5, sha1, sha256, sha384, sha512. Returns the hash as a hex string (use from_hex() to convert to binary). | MySQL uses md5(), sha(), sha1(), and sha2(). MSSQL uses hashbytes(). Sybase uses hash(). |
hmac(a,s,k) | Computes the HMAC (hashed message authentication code) of string or binary s using the hash function specified in a and the key specified in k. Supported hash functions: md5, sha1, sha256, sha384, sha512. Returns the HMAC as a hex string (use from_hex() to convert to binary). | Centrallix. |
pbkdf2(a,p,s,i) | Computes the PBKDF2 hash of the password p and salt s using the hash function specified in a and the iteration count i. Supported hash functions: md5, sha1, sha256, sha384, sha512. Returns the derived key as a hex string (use from_hex() to convert to binary). | Centrallix. |
argon2id(p,s,t,m,l,h) | Computes the Argon2id hash of the password p and salt s. Optionally, one or more of t,m,l, and h can be specified. t is the time complexity, ranging from 0 to 24. m is the memory complexity, ranging from 64 to 65535. l is the number of lanes (threads), ranging from 1 to 8. h is the hash length, in bytes, ranging from 4 to 255. | Centrallix. |
Comments...
(none yet)
Add a Comment...
|