2025-03-14 21:59:59 -06:00
|
|
|
# oathtool
|
|
|
|
|
|
|
|
|
|
> OATH 일회성 비밀번호 도구.
|
|
|
|
|
> 더 많은 정보: <https://www.nongnu.org/oath-toolkit/oathtool.1.html>.
|
|
|
|
|
|
|
|
|
|
- TOTP 토큰 생성 (Google Authenticator처럼 동작):
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`oathtool --totp {{[-b|--base32]}} "{{비밀}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 특정 시간에 대한 TOTP 토큰 생성:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`oathtool --totp {{[-N|--now]}} "{{2004-02-29 16:21:42}}" {{[-b|--base32]}} "{{비밀}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- TOTP 토큰 검증:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`oathtool --totp {{[-b|--base32]}} "{{비밀}}" "{{토큰}}"`
|