public class Display
extends java.lang.Object
Command line tool to decrypt and parse One Time Passwords (OTPs) output from YubiKey devices.
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Decrypt encrypted part of a YubiKey OTP and prints the parsed result to
standard out . |
public static void main(java.lang.String[] argv)
Decrypt encrypted part of a YubiKey OTP and prints the parsed result to
standard out
.
First argument is the 128 bit (16 bytes)
Modhex
encoded (32 characters) AES key to use for encryption.
Second argument is the
Modhex
encoded OTP (i.e. as produced by the YubiKey).
Example (using test data provided by Yubico):
java -cp yubico-base-1.0.jar com.yubico.base.tools.Display urtubjtnuihvntcreeeecvbregfjibtn hknhfjbrjnlnldnhcujvddbikngjrtgh
Terminates with exit code 0
if OK and with -1
if fails.
argv
- Command line arguments, see above for accepted arguments.