This tool is created as a command-line emulator of Token2 hardware tokens. It is hardcoded to generate 6 digits, with 30 seconds window, and sha-1 secrets only.
t2otp.exe SECRET [loop]
- the first argument is the value of the secret hash (seed) in base32 format. If the secret value is not supplied, an input box will appear asking to enter the secret value
- the second argument is optional if argument equals to 'loop', the tool will stay launched recalculating the current OTP until stopped with Ctrl+C
- prints help page with usage syntax
The tool can be downloaded here.