/clj-otp

HOTP (rfc4226) & TOTP (rfc6238) Clojure API (fork of omarkj/cljotp)

Primary LanguageClojureOtherNOASSERTION

clj-otp

Build Status

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

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)

Licence

Check the LICENCE file.