digest.time_hmac_sha512()

Returns a time-based one-time password with SHA-512 based upon the current time. The key parameter is a Base64-encoded key. The interval parameter specifies the lifetime of the token and must be non-negative. The offset parameter provides a means for mitigating clock skew.

Format

STRING
digest.time_hmac_sha512(STRING key, INTEGER interval, INTEGER offset)

Examples

1
set req.http.otp-sha-512 = digest.time_hmac_sha512(digest.base64("secret"), 60, 10);