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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: oath-1.4.4.tar.gz
  • Upload date:
  • Size: 111.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for oath-1.4.4.tar.gz
Algorithm Hash digest
SHA256 bd6b20d20f2c4e3f53523ee900211dca75aeeca72f4f5a9fd8dcacc175fe1c0b
MD5 d65fa62f177061619ebd9343acc75133
BLAKE2b-256 9fee51d13af182a1dd141c95dbbbc60867ef1d6d3d123e8eb9313ab49deabb79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oath-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for oath-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 503092f388f041f91737f6b3bd5b83e8cf3f40c7d9bc87bcfbfac33e0ae6d685
MD5 4ccee425c949e870d82006a3402bdf63
BLAKE2b-256 cf52e9b0829038c41be3f940de72d1159e3ff40aa5bf20245426ef333426a284

See more details on using hashes here.

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