RADCRYPT(8)

✨ RADCRYPT(8) ✨

okay bestie, so this is radcrypt from the System Manager's Manual, and it's literally the girl who makes password hashes for RADIUS πŸŽ€ she can also do a lil vibe check on an existing hash to see if it matches. no cap.


🌸 NAME 🌸

radcrypt β€” generate password hash for use with radius, or validates a password hash πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

radcrypt [-d|--des] [-m|--md5] [-c|--check] plaintext_password
[hashed_password]

πŸ’– DESCRIPTION πŸ’–

so what she does is: she takes a plaintext password and spits out a hashed digest of it πŸ”₯ OR she can validate whether a password hash matches a plaintext password. it's giving "trust but verify".

DES and MD5 hashes are currently supported. when she's generating a password hash, a random salt gets generated and applied β€” iconic behaviour, honestly ✨

now here's the part where you actually validate a hash, bestie: you specify -c or --check and you pass hashed_password after plaintext_password on the command line. in that case hashed_password gets checked to see if it matches plaintext_password.

⚠️ okay so PAY ATTENTION to this one because it's genuinely the plot twist: if it matches, "Password OK" gets printed and the exit status will be 1. otherwise "Password BAD" gets printed and the exit status will be 0. yes. that is the opposite of a normal successful shell status. note it. write it down. put it on your mirror. 😭

πŸŽ€ OPTIONS πŸŽ€

  • -d, --des β€” use a DES (Data Encryption Standard) hash. this is the default, main character energy πŸ‘‘ ignored if you're performing a password check.
  • -m, --md5 β€” use a MD5 (Message Digest 5) hash. ignored if you're performing a password check.
  • -c, --check β€” perform a validation check on a password hash to verify if it matches the plantext password. πŸ•΅οΈβ€β™€οΈ

🌈 EXAMPLES 🌈

generating one:

$ radcrypt foobar
HaX0xn7Qy650Q

and checking one:

$ radcrypt -c foobar HaX0xn7Qy650Q
Password OK

see? ate. πŸ’…


🫢 SEE ALSO 🫢

radiusd(8), crypt(3)


πŸ’œ AUTHORS πŸ’œ

Miquel van Smoorenburg <miquels@cistron-office.nl>


and that's the whole page, bestie β€” RADCRYPT(8), straight out of the System Manager's Manual 🧚 go hash responsibly, and remember: exit status 1 means Password OK here, so don't let the shell status gaslight you πŸ’€πŸŒΈ

πŸ“¦ where this page comes from