Skip to content

TOTP (time-based one-time password) generator

Notifications You must be signed in to change notification settings

thucdx/2fa_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Two-Factor Authentication

Specification: https://tools.ietf.org/html/rfc6238

How to run

Pakage

mvn package

Run

java -jar <jar_file> <MODES> [OPTIONS]

###MODES -o: Get valid TOPT.

-g: Generate serect.

###OPTIONS -q: Generate QRCode, can only be used in conjunction with -g mode.

###EXAMPLE:

  • Generate shared secret along with QR code

java -jar 2FA-1.0-SNAPSHOT-jar-with-dependencies.jar -g -q

  • Get current TOTP of a particular secret

java -jar 2FA-1.0-SNAPSHOT-jar-with-dependencies.jar -o W75TNHWGXQII34GU

##AUTHENTICATOR APPS

Android

iOS

Window Phone

BlackBerry

About

TOTP (time-based one-time password) generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages