Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulovitin/twofa
Two Factor Authentication Generator for CLI
https://github.com/paulovitin/twofa
cli cli-app javascript nodejs qrcode two-factor-authentication twofactor
Last synced: 12 days ago
JSON representation
Two Factor Authentication Generator for CLI
- Host: GitHub
- URL: https://github.com/paulovitin/twofa
- Owner: paulovitin
- License: mit
- Created: 2018-04-01T22:35:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T20:19:43.000Z (over 4 years ago)
- Last Synced: 2025-01-03T13:06:52.810Z (22 days ago)
- Topics: cli, cli-app, javascript, nodejs, qrcode, two-factor-authentication, twofactor
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# twofa
> Two Factor Authentication Generator for CLI[![npm version](https://img.shields.io/npm/v/twofa.svg?style=flat-square)](https://www.npmjs.com/package/twofa)
[![Build Status](https://img.shields.io/travis/paulovitin/twofa/master.svg?style=flat-square)](https://travis-ci.org/paulovitin/twofa)
[![AppVeyor](https://img.shields.io/appveyor/ci/paulovitin/twofa.svg?style=flat-square&logo=appveyor)](https://ci.appveyor.com/project/paulovitin/twofa)
[![Coverage Status](https://img.shields.io/coveralls/paulovitin/twofa/master.svg?style=flat-square)](https://coveralls.io/github/paulovitin/twofa?branch=master)## Install
```
$ npm install -g twofa
```## Usage
```
$ twofa --helpUsage: twofa [options] [command]
Options:
-h, --help output usage information
Commands:
add [options] Add a new service to generate authentication code
del Delete a service registered
gen [service] Generate authentication code
qrcode Generate qrcode from a service
```## Commands
### add service-name [--image=qrcode]
Register a new service using a screencapture or pass optionaly a image path
```shell
$ 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
```shell
$ twofa del github
```### gen [service-name]
Generate the Authentication code from a service
```shell
$ twofa gen github // the code goes to your clipboard
```Or generate a list of registered codes omitting the service-name
```shell
$ 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
```shell
$ twofa qrcode github
```Thats it...