Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Authenticator

A small go program to generate the google authenticator code.

GOPATH=<workspace_dir>
export GOPATH
PATH="${PATH}:${GOPATH}/bin"
export PATH
  • Clone the repo in your GOPATH
  • Provide your 16-digit secret token in secrets.pem file
  • Change the input file in google-authenticator.go from dummy_secret.pem to secret.pem

The auth code works on the secret token and the current time. The time on your local machine should be in sync according to NTP.

  • Run sudo ntpdate time.nist.gov to sync time
  • Run go run google_authenticator.go. (For MAC users, it will copy the code to clipboard also)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages