Liking cljdoc? Tell your friends :D

one-time.core


generate-secret-keyclj

(generate-secret-key)

Generate a secret key for use in TOTP/HOTP.

Generate a secret key for use in TOTP/HOTP.
sourceraw docstring

get-hotp-tokenclj

(get-hotp-token secret counter)

Gets the HOTP token for the secret and counter provided

Gets the HOTP token for the secret and counter provided
sourceraw docstring

get-totp-tokenclj

(get-totp-token secret)
(get-totp-token secret {:keys [date time-step hmac-sha-type] :as all})

Gets the TOTP token for the secret and parameters provided

Gets the TOTP token for the secret and parameters provided
sourceraw docstring

is-valid-hotp-token?clj

(is-valid-hotp-token? token secret counter)

Checks if the presented hotp token is valid against a secret and counter

Checks if the presented hotp token is valid against a secret and counter
sourceraw docstring

is-valid-totp-token?clj

(is-valid-totp-token? token secret)
(is-valid-totp-token? token secret options)

Checks if the presented totp token is valid against a secret and options

Checks if the presented totp token is valid against a secret and options
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close