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
| Parameter | Type | Description |
|---|---|---|
plain | string | Plain text to hash |
Returns
Promise<string>
Base64url-encoded hash