Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdauvergne/python-oath
Python implementation of HOTP, TOTP and OCRA algorithms from OATH
https://github.com/bdauvergne/python-oath
Last synced: 3 months ago
JSON representation
Python implementation of HOTP, TOTP and OCRA algorithms from OATH
- Host: GitHub
- URL: https://github.com/bdauvergne/python-oath
- Owner: bdauvergne
- License: bsd-3-clause
- Created: 2010-11-02T23:04:27.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2021-11-22T19:45:24.000Z (almost 3 years ago)
- Last Synced: 2024-07-19T04:58:07.440Z (4 months ago)
- Language: Python
- Homepage:
- Size: 201 KB
- Stars: 128
- Watchers: 8
- Forks: 35
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: Changelog.rst
- License: COPYING
Awesome Lists containing this project
README
Python OATH
===========.. image:: https://github.com/bdauvergne/python-oath/workflows/CI/badge.svg
:target: https://github.com/bdauvergne/python-oath/actions.. image:: https://img.shields.io/pypi/dm/oath
:target: https://pypi.org/project/oath/python-oath is a package implementing the three main OATH specifications:
- HOTP, an event based one-time password standard -- OTP -- using HMAC signatures,
- TOTP, a time based OTP,
- OCRA, a mixed OTP / signature system based on HOTP for complex use cases.It's Python 3 ready.
Getting started
===============The main APIs are:
- hotp, to generate a password.
- accept_hotp, to check a received password,
- totp and accept_totp, the same for the TOTP standard.
- GoogleAuthenticator to parse Google Authenticator URI
- from_b32key to create a a GoogleAuthenticator object from a simple base32 key