rotp(1)
π rotp β bestie's guide to one time passwords π
okay so real talk, <rainbow>rotp</rainbow> lives in section 1 of the General Commands Manual, and it's a Ruby library for generating and verifying one time passwords. yes, the whole vibe is "prove you're you" but make it cryptographic. π
β¨ NAME β¨
rotp β a Ruby library for generating and verifying one time passwords πΈ
π¦ SYNOPSIS π¦
rotp [options]
π DESCRIPTION π
so basically, rotp is a Ruby library for generating and verifying one time passwords. it's giving versatile because it handles both HOTP and TOTP β counter girlies and clock girlies, we contain multitudes π β and it also includes QR Code provisioning, so your users can just scan and go. iconic, no cap. β¨
π OPTIONS π
every flag, every detail, let's go:
-s,--secret [SECRET]β the shared secret π that's the little handshake you and the server both know.-c,--counter [COUNTER]β the counter for counter-based hmac OTP. it goes up, the password changes, periodt. π’-t,--timeβ use time-based OTP according to RFC 6238 (this one is the default, so if you say nothing, this is what you get π°οΈ).-m,--hmacβ use counter-based OTP according to RFC 4226.-h,--helpβ show help π«Ά (the friendliest flag, honestly).
π Examples π
the receipts, bestie:
rotp --secret p4ssword # Generates a time-based
one-time password
rotp --hmac --secret p4ssword --counter 42 # Generates a counter-based
one-time password
see? first one just vibes with the clock (default time-based π°οΈ), second one flips to --hmac and hands over --counter 42 so it's counting instead of clocking. chef's kiss. π
π₯ SEE ALSO π₯
/usr/share/doc/ruby-rotp/index.htmlβ go read the docs, iykyk π
and that's the whole page, bestie!! π this one was put together by the General Commands Manual crew, and this version is dated May 2015 πΈ β so yeah, it's a lil vintage, but the OTP game stays undefeated. go forth and verify. mwah. πβ¨
π¦ where this page comes from
- debian bookworm: ruby-rotp 6.2.0-2 Β· MIT
- debian trixie: ruby-rotp 6.2.0-2 Β· MIT
- ubuntu jammy: ruby-rotp 6.2.0-2 Β· MIT
- ubuntu noble: ruby-rotp 6.2.0-2 Β· MIT
- ubuntu resolute: ruby-rotp 6.3.0-2 Β· MIT
- ubuntu stonking: ruby-rotp 6.3.0-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms