Skip to content

karakays/otp-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

otp-gen

A command line interface for generating one time passwords as per RFC 4226 and RFC 6238

Requirements

  • Python version 3.6.x and greater

Installation

The way to install otp-gen is to use pip

$ pip3 install otp-gen

Getting Started

You need to provision the secret key, issuer and rest of the details with the config command. Default values are shown if any.

img/demo-provisioning.gif

Usage

You can request a new OTP with the get command. A progress bar appears next to the code to indicate expiry period of it. get continuously provides valid codes until killed.

Current configuration can be embedded in a QR code by using qrcode command.

img/demo.gif

References

License

otp-gen is under MIT license