Elixir2fa - Generate QR-Code, Random Secret and TOTP

Last night I looking for a 2FA library which suited my needs :

  1. Generate a Random Alphabet/Secret
  2. Generate QR-Code (so that users can scan with the 2FA application)
  3. Calculate TOTP By the secret code

but as it is difficult to find it, therefore I combine several people’s source code into one

https://github.com/codenoid/elixir-two-factor-auth

I hope this library is useful for you ^^

6 Likes