Skip to content

TypeScript API / laikacms/crypto / sha512

Function: sha512() ​

ts
function sha512(plain): Promise<string>;

Hash data using SHA-512 for post-quantum resistance. SHA-512 provides 256-bit security against quantum attacks (Grover's algorithm).

Parameters ​

ParameterTypeDescription
plainstringPlain text to hash

Returns ​

Promise<string>

Base64url-encoded hash

Released under the MIT License.