Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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.

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


Release history Release notifications

This version
History Node

1.4.1

History Node

1.4.0

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.9

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
oath-1.4.1.tar.gz (108.4 kB) Copy SHA256 hash SHA256 Source None Jun 16, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page