Code Monkey home page Code Monkey logo

2fa's Introduction

2fa

A command-line 2-factor authentication manager. This includes pyotp and pyqrcode.

Requirements

  • Python 3
  • gpg2

Installation

$ git clone https://github.com/seiyanuta/2fa
$ cd 2fa
$ python3 setup.py install

How to use

Register an account:

$ 2fa --register 'AWS (seiya)' '555555'

Generate codes:

$ 2fa
AWS (root)          281692      (23)
AWS (seiya)         628110      (23)
Dropbox             713351      (23)
GitHub              719876      (23)
Google              884966      (23)

Generate a QR code for Google Authenticator.

$ 2fa --qrcode "AWS (root)"

Secret file

Token seeds are encrypted by gpg2 and saved as ~/.2fa.secrets. Just copy the file to backup.

License

2fa is released under MIT license and includes third-party libraries:

  • pyotp: MIT License
  • pyqrcode: BSD 3-clause License

2fa's People

Contributors

nuta avatar ralic avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.