Liking cljdoc? Tell your friends :D

totp-clj.core

A set of functions for implementing TOTP multi-factor authentication.

A set of functions for implementing TOTP multi-factor authentication.
raw docstring

generate-secretclj

(generate-secret)

Generates a new 256-bit TOTP secret.

Generates a new 256-bit TOTP secret.
sourceraw docstring

qrcodeclj

(qrcode uri
        &
        {:keys [width height margin image-type]
         :or {width 250 height 250 margin 4 image-type "PNG"}})

Returns a QR Code PNG image of the user's TOTP secret as a byte array.

Returns a QR Code PNG image of the user's TOTP secret as a byte array.
sourceraw docstring

uriclj

(uri service username secret)

Given a service name, username, and TOTP secret, returns a TOTP URI.

Given a service name, username, and TOTP secret, returns a TOTP URI.
sourceraw docstring

verifyclj

(verify secret token)

Given a TOTP secret and token, verifies the token.

Given a TOTP secret and token, verifies the token.
sourceraw docstring

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

× close