clj-otp
June 26, 2014 ยท View on GitHub
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
Add
to your leiningen :dependencies.
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.