sha512
stringGenerates a SHA-512 cryptographic hash of a string
Syntax
sha512(string) Parameters
string (string) The string to hash
Returns
string SHA-512 hash as hexadecimal string
Examples
Input:
sha512("password") Output:
"b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b46df5f1326af5a2ea6d103fd07c95385ffab0cacbc86" Input:
"test" | sha512 Output:
"ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff" The sha512() function generates a SHA-512 cryptographic hash of a string. SHA-512 is part of the SHA-2 family and produces a 512-bit (128 hexadecimal character) hash.
Usage
Use sha512() for strong cryptographic hashing, secure password storage, data integrity verification, or when higher security is required than SHA-256.