Skip to content

mojixcoder/otpgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

otpgen

In the company where I work at, I need OTP code to login almost everywhere.
I was tired of the Google Authenticator app, so I decided to write this small project to be able to generate OTPs on my laptop without having to check my phone.

Installing

Clone the project

  git clone https://github.com/mojixcoder/otpgen

Go to the project directory

  cd otpgen

Build the project

  go build

Make it executable

  sudo mv ./otpgen /usr/local/bin    
  sudo chmod +x /usr/local/bin/otpgen

Place your configs at /etc/otpgen/config.yaml.
You can add as many keys as you like.

keys:
  gitlab:
    secret: "totp_secret_for_gitlab"
  vpn:
    secret: "totp_secret_for_vpn"

Generate an OTP for your VPN

$ otpgen vpn
123456

Exporting secrets from Google Authenticator

To export TOTP secrets from Google Authenticator, please follow the instructions in this repo.

About

A CLI apps to generate TOTP keys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages