Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.18 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.18 KB

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