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.5.tar.gz (112.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oath-1.4.5-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file oath-1.4.5.tar.gz.

File metadata

  • Download URL: oath-1.4.5.tar.gz
  • Upload date:
  • Size: 112.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for oath-1.4.5.tar.gz
Algorithm Hash digest
SHA256 0c5c53ed25b52ef621d7c08f359c21207fe2e36a89df8b3cd26fb54b4ff613b8
MD5 d4821e63f0465ee72f4b07fe8f61f91e
BLAKE2b-256 67b6754e3ceb51480587c5f478661c1159473b2e3cc6c59a0f5db77da3664cb5

See more details on using hashes here.

File details

Details for the file oath-1.4.5-py3-none-any.whl.

File metadata

  • Download URL: oath-1.4.5-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for oath-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d0e95cba8cad359104a736b576de3a3a7c633f9168764673e3dd622e1bd139a7
MD5 3e681551452168630ccedd70edbf20e5
BLAKE2b-256 df379457dd60b07ef7e9f00001d1cd45a023937f342f1db3a9bacf0fba926edb

See more details on using hashes here.

Supported by

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