pyg2fa / README.markdown

pyg2fa - Google two factor Authentication

Welcome

Welcome to g2fa. Google two factor auth for Python based apps.

Repo: $hg clone http://code.thejeshgn.com/pyg2fa

usage:

  • Clone or download g2fa.py
  • cd to folder
  • sudo python setup.py install
  • for test run
    import pyg2fa
    pyg2fa.test()
  • The test uses YOUR_SECRET_INITIAL_KEY, it should be at least 16, base 32 characters, this is secret, this could be different for different web app users
  • It will print the URL of QR code, Scan it using your Google Authenticator application
  • For testing enter the OTP generated by the Google Authenticator, the python program should print True if everything goes right.
  • make sure time on your comp and on your phone is in sync

Ponder:

  • Clock on server and on android need to be in sync

Recent change:

  • Added validate method which will allow clients clock to drift server time by +/- defined seconds.

future

  • Developer documents and an demo web application
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.