Skip to content

ksrnnb/otp

Repository files navigation

otp

This project is a simple implement of 2 factor authentication using time-based one-time password.

Getting started

1. Set up Google Authenticator

Install Google Authneticator app. (iPhone / Android)

Scan QR code below. This QR code has example user's key for generating one-time password.

If it is difficult to scan QR code, please enter account and key directly.

account arbitrary name
key NBSWY3DP

NBSWY3DP is a Base32 encoded value of hello.

When you finished set up, 6 digits code will be generated every 30 seconds.

2. Run server

make run

3. Try to login

Access to localhost:8080 and try to login.

You will be required to enter one-time password after id/password login. Then, enter one-time password shown in Google Authenticator.

id hogehoge
password hogehoge

NOT implement

  • Resynchronization
  • Preventing CSRF attacks

Articles

References

About

implementation of one time password

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published