Liking cljdoc? Tell your friends :D


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.


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)


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