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