https://github.com/raed667/gpg2factor
GPG based 2 factor authentification
https://github.com/raed667/gpg2factor
Last synced: about 2 months ago
JSON representation
GPG based 2 factor authentification
- Host: GitHub
- URL: https://github.com/raed667/gpg2factor
- Owner: raed667
- License: other
- Created: 2013-11-30T20:19:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-15T10:28:11.000Z (over 9 years ago)
- Last Synced: 2025-02-03T17:05:59.677Z (4 months ago)
- Language: PHP
- Homepage: http://raed.it/gpg2fa/
- Size: 248 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gpg_auth_master_dev
===================#### GPG 2FA
GPG based 2 factor authentification
### Demo
[Demo link](http://raed.it/gpg2fa/)The 2 demo files are `index.html` and `login.php`.
I don't store anything that is passed to the demo.### Why is it useful?
When you need 2FA for your website but:
* You don't want your users, *for privacy*, to put phone-numbers (or even emails).
* You're too poor to buy such a phone based service.#### How it works?
1- Logged-in user adds their public-key.
2- In the next log-in, the class generates a randon `token`.
3- The token is encrypted and displayed to the user.
5- User decrypts the token with their private key.
6- User submists the decrypted token and if it maches the original token they log-in.
#### TODO
Get this working with WordPress. (Plugin)### Version
0.2.1### Tech
This is built and tested using the latest PHP and GnuPG versions. I don't really know about the rest.