FreeOTP: Difference between revisions

From Pabut
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
  sudo apt-get install oathtool
  sudo apt-get install oathtool
* generate a random key
* generate a random key
  roschews@runner:~$ head -10 /dev/urandom | md5sum
  freddy@runner:~$ head -10 /dev/urandom | md5sum
  5f0b169ad85959ddacc7fc1c28804ef9  -
  5f0b169ad85959ddacc7fc1c28804ef9  -
* Run oathtool to get the base32 version of the key
* Run oathtool to get the base32 version of the key
  roschews@runner:~$ oathtool --totp --verbose 5f0b169ad85959ddacc7fc1c28804ef9
  freddy@runner:~$ oathtool --totp --verbose 5f0b169ad85959ddacc7fc1c28804ef9
  Hex secret: 5f0b169ad85959ddacc7fc1c28804ef9
  Hex secret: 5f0b169ad85959ddacc7fc1c28804ef9
  Base32 secret: L4FRNGWYLFM53LGH7QOCRACO7E======
  Base32 secret: L4FRNGWYLFM53LGH7QOCRACO7E======

Revision as of 11:29, 4 September 2019

sudo apt-get install oathtool
  • generate a random key
freddy@runner:~$ head -10 /dev/urandom | md5sum
5f0b169ad85959ddacc7fc1c28804ef9  -
  • Run oathtool to get the base32 version of the key
freddy@runner:~$ oathtool --totp --verbose 5f0b169ad85959ddacc7fc1c28804ef9
Hex secret: 5f0b169ad85959ddacc7fc1c28804ef9
Base32 secret: L4FRNGWYLFM53LGH7QOCRACO7E======
Digits: 6
Window size: 0
Step size (seconds): 30
Start time: 1970-01-01 00:00:00 UTC (0)
Current time: 2019-09-04 15:24:00 UTC (1567610640)
Counter: 0x31D53F8 (52253688)

125184