Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oath

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oath

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

  • 1.4.4
  • PyPI
  • Socket score

Maintainers
1

Python OATH

.. image:: https://github.com/bdauvergne/python-oath/workflows/CI/badge.svg :target: https://github.com/bdauvergne/python-oath/actions

.. image:: https://img.shields.io/pypi/dm/oath :target: https://pypi.org/project/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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc