Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 679 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 679 Bytes

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())