Skip to content

SkyTradeInc/Two-Factor-Authentication

Repository files navigation

Two Factor Authentication CLI

This project implements one-time passcode (OTP) generation using open standards developed by Initiative for Open Authentication (OATH)

2FA Webpage

2FA CLI

Rasperry Pi hadware key

To convert your Raspberry Pi to a hadware security key two-factor authentication, read the guide here

Getting Started

1. Clone and install dependencies

git clone https://github.com/SkyTradeInc/Two-Factor-Authentication.git
cd Two-Factor-Authentication
npm i

2. Configure

Create a file named secrets.json. This will contain our back-up secrets we receive when enabling two factor authentication

Example configuration file

[
  {
    "website": "Google",
    "secret": "KNPHN3Q6IK5X9ZPY",
    "email": "[email protected]"
  },
  {
    "website": "Github",
    "secret": "CRDJ6INNLA5CAMPP",
    "email": "[email protected]"
  }
]

3. Run

node index

If there is no errors in your secrets.json file, your OTP will display in your console

Front end implementation can be accessed on http://localhost:6060

About

Generate one-time passcodes (OTP) in the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published