t2otp v2 | TOKEN2 TOTP Generator command line tool
This tool is created as a command line tool to emulate Token2 hardware tokens, but can be used for any other purposes as well

 Usage syntax

t2otp.exe SECRET algorithm digits window [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 algorithm can be sha1 or sha256 , please note that for sha256 the secret should be >32 chars and <=64 chars
- number of digits in OTP, usually 6 or 8
- OTP refresh interval window, usually 30 or 60 seconds
- the last argument is optional, if argument equals to 'loop' , the tool will stay launched recalculating the current OTP until stopped with Ctrl+C, if the argument is 'clean' the tool will produce the OTP only

t2otp.exe -help
prints this page

 Examples

t2otp.exe QQRZO4QIGPJFXS2QXDIL4JUO2KKQCPTOF2D5AX5M3R2VH5NM2ZUSXIXGP4WPMVTR sha256 6 30

t2otp.exe QQRZO4QIGPJFXS2QXDIL4JUO2KKQCPTOF2D5AX5M3R2VH5NM2ZUSXIXGP4WPMVTR sha256 8 60

t2otp.exe JBSWY3DPEHPK3PXPJBSWY3DPEHPK3PXP sha1 6 30

t2otp.exe JBSWY3DPEHPK3PXPJBSWY3DPEHPK3PXP sha1 6 30 loop

t2otp.exe JBSWY3DPEHPK3PXPJBSWY3DPEHPK3PXP sha1 6 30 clean

(c) TOKEN2 SARL. TOKEN2 is a Swiss registered trademark