mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 22:59:30 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate TOTP token (behaves like Google Authenticator):
|
||||
|
||||
`oathtool --totp --base32 "{{secret}}"`
|
||||
`oathtool --totp {{[-b|--base32]}} "{{secret}}"`
|
||||
|
||||
- Generate a TOTP token for a specific time:
|
||||
|
||||
`oathtool --totp --now "{{2004-02-29 16:21:42}}" --base32 "{{secret}}"`
|
||||
`oathtool --totp {{[-N|--now]}} "{{2004-02-29 16:21:42}}" {{[-b|--base32]}} "{{secret}}"`
|
||||
|
||||
- Validate a TOTP token:
|
||||
|
||||
`oathtool --totp --base32 "{{secret}}" "{{token}}"`
|
||||
`oathtool --totp {{[-b|--base32]}} "{{secret}}" "{{token}}"`
|
||||
|
||||
Reference in New Issue
Block a user