t2otp v2 - Command line TOTP Generator

version 2

This tool is created as a command-line emulator of Token2 hardware tokens. It can generate any combination of 6 or 8 digits OTP, with 30 or 60 seconds interval, with SHA1 or SHA256 secret keys.


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 between 52 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 the 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 help page with usage syntax

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

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


Download

The tool can be downloaded here.


Previous version

The previous version of this tool, v1, is available here.