Liking cljdoc? Tell your friends :D

clj-otp

Generate one time passwords, HOTPs based on RFC 4226 and TOTPs based on RFC 6238 for your application. Works with the Google Authenticator.

Originally implemented by omarkj and forked from djui.

Installation

Clojars package name:

[clj-otp "0.1.3"]

Clojure API

Get a HTOP based on a counter:

(hotp secret counter)

Get a TOTP based on the time:

(totp secret)

Get a HOTP based QR code image url:

(hotp-url label counter secret)

Get a TOTP based QR code image url:

(totp-url label secret)

License

Check the LICENSE file.

Can you improve this documentation? These fine people already did:
Ómar Kjartan Yasin, Uwe Dauernheim & ttasterisco
Edit on GitHub

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

× close