Skip to main content

Python implementation of the three main OATH specifications: HOTP, TOTP and OCRA

Project description

Python OATH

https://github.com/bdauvergne/python-oath/workflows/CI/badge.svg https://img.shields.io/pypi/dm/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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oath-1.4.4.tar.gz (111.1 kB view hashes)

Uploaded Source

Built Distribution

oath-1.4.4-py3-none-any.whl (13.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page