2 ms·
Random: I really like how simple the Google Authenticator's TOTP algorithm is: https://github.com/tadeck/onetimepass/blob/master/onetimepass/__init__.py https:/
by IgorPartola 13y ago
Random: I really like how simple the Google Authenticator's TOTP algorithm is: https://github.com/tadeck/onetimepass/blob/master/onetimepass/__init__.py https://github.com/tadeck/onetimepass/blob/master/onetimepas...
It's only a few lines of code and other than having sync'ed clocks does not require any other running services. At one point I implemented it as a second factor for my most important servers that I ssh to so that my IP would be unlocked for 45 minutes after the initial connection.
- StavrosK 13y agoNitpick: It's not Google's, it's an open standard (OATH): http://tools.ietf.org/html/rfc6238 http://tools.ietf.org/html/rfc6238 There's also HOTP.
- IgorPartola 13y agoYou are right, I should have elaborated. Just like most people, I first learned about it from using the Google Authenticator app.
- StavrosK 13y agoSure, I'm just clarifying that it's a standard (and thus awesome).