Source

pyg2fa / readme.txt

Full commit
===============================================================================
      Copyright (C) 2012 Thejesh GN <i at thejeshgn dot com >, MIT License
===============================================================================
Welcome

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

Repo:

$hg clone http://code.thejeshgn.com/g2fa


usage:

1. Clone or download g2fa.py

2. Change YOUR_SECRET_INITIAL_KEY, it should be at least 16, base 32 characters, keep this secret, this could be different for different app users

3. python g2fa.py

4. It will print the info for testing. Most important things are otp and QR code for Google Auth android app

5. User scans this QR code on his mobile which generates OTP on his mobile which you will compare using g2fa.py on your server side


Ponder:

1. Clock on server and on android need to be in sync

Future:

1. Will add verify method which will allow clients clock to drift server time by +/- <defined> minutes.