Skip to content
Two Factor Authentication Generator for CLI
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Add some docs and appveyor test on windows Apr 5, 2018
.editorconfig TwoFA command line Apr 1, 2018
.gitattributes TwoFA command line Apr 1, 2018
.gitignore TwoFA command line Apr 1, 2018
.npmrc TwoFA command line Apr 1, 2018
.travis.yml Configure coverage Apr 1, 2018
TwoFA.js Remove some dependencies and some optimizations Apr 3, 2018
appveyor.yml Add some docs and appveyor test on windows Apr 5, 2018
cli.js Add the generated code to clipboard Apr 30, 2018
license TwoFA command line Apr 1, 2018
package.json Add the generated code to clipboard Apr 30, 2018
readme.md Add the generated code to clipboard Apr 30, 2018
test.js

readme.md

twofa

Two Factor Authentication Generator for CLI

npm version Build Status AppVeyor Coverage Status

Install

$ npm install -g twofa

Usage

$ twofa --help

Usage: twofa [options] [command]

  Options:

    -h, --help               output usage information

  Commands:

    add [options] <service>  Add a new service to generate authentication code
    del <service>            Delete a service registered
    gen [service]            Generate authentication code
    qrcode <service>         Generate qrcode from a service

Commands

add service-name [--image=qrcode]

Register a new service using a screencapture or pass optionaly a image path

$ twofa add github # use the mouse to capture a qrcode area

Or

$ twofa add github --image githubqrcode.png

del service-name

Delete a registered service

$ twofa del github

gen [service-name]

Generate the Authentication code from a service

$ twofa gen github // the code goes to your clipboard

Or generate a list of registered codes omitting the service-name

$ twofa gen

qrcode service-name

Generate a qrcode from a service. This can be helpful to register the same qrcode in another application for generate authentication codes

$ twofa qrcode github

Thats it...

You can’t perform that action at this time.