LOG IN SIGN UP
Documentation

digest.time_hmac_md5()

Returns a time-based one-time password using MD5 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_md5(STRING key, INTEGER interval, INTEGER offset)

Examples

1
set req.http.otp-md5 = digest.time_hmac_md5(digest.base64("secret"), 60, 10);