/erlotp

Erlang One Time Token Generator

Primary LanguageErlang

Erlotp

Build Status

Generate one time passwords, HOTPs and TOTPs for your application. Should work with the Google Authenticator.

Erlang API

Types

-type token() :: integer().
-type interval() :: integer().
-type secret() :: binary().

Get the one time token based on interval number

token() = erlotp:get_htop(secret(), interval())

Get the time sensitive one time token

token() = erlotp:get_totp(secret())