Skip to main content

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

Project description

Python OATH

https://travis-ci.org/bdauvergne/python-oath.png?branch=master https://pypip.in/d/oath/badge.png
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.

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.

Files for oath, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size oath-1.2.tar.gz (9.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page