2 ms·
Plugging my hotp/totp python library hotpie[0]. Written originally in 2010. Around 100 lines including comments and tests against the RFC. Available on Pypi for
by gingerlime 7y ago
Plugging my hotp/totp python library hotpie[0]. Written originally in 2010. Around 100 lines including comments and tests against the RFC. Available on Pypi for python 2.x and 3.x.
The beauty of HOTP/TOTP for me is its simplicity. And being able to write a simple implementation makes it easy to test, debug and be sure that there are little or no holes.
[0] https://github.com/gingerlime/hotpie https://github.com/gingerlime/hotpie
- fr33104d 7y agoI remember having fun implementing that rfc and having a sort of Google authenticator on my Linux box besides Android. https://github.com/bjornua/totp.py/blob/master/totp.py https://github.com/bjornua/totp.py/blob/master/totp.py