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 π«Ά
π 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
- alpine 3.22: freeradius-doc 3.0.27-r1 Β· GPL-2.0-or-later
- alpine 3.23: freeradius-doc 3.0.27-r2 Β· GPL-2.0-or-later
- alpine 3.24: freeradius-doc 3.0.27-r3 Β· GPL-2.0-or-later
- arch rolling: freeradius 3.2.10-4 Β· GPL-2.0-or-later
- centos-stream 10: freeradius-utils 3.2.8-2.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 9: freeradius-utils 3.0.27-4.el9 Β· GPLv2+ and LGPLv2+
- debian bookworm: freeradius-common 3.2.1+dfsg-4+deb12u1 Β· GPL-2.0-or-later
- debian trixie: freeradius-common 3.2.7+dfsg-1+deb13u2 Β· GPL-2.0-or-later
- fedora 43: freeradius-utils 3.2.7-6.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius-utils 3.2.8-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: freeradius-utils 3.2.8-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- nixos 26.05: freeradius 3.2.8
- nixpkgs unstable: freeradius 3.2.10
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3 Β· GPL-2.0-or-later
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3.3 Β· GPL-2.0-or-later
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3.4 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.3+dfsg-2build7 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.5+dfsg-3~ubuntu24.04.1 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.5+dfsg-3~ubuntu24.04.3 Β· GPL-2.0-or-later
- ubuntu questing: freeradius-common 3.2.7+dfsg-1ubuntu2
- ubuntu resolute: freeradius-common 3.2.8+dfsg-1ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: freeradius-common 3.2.10+dfsg-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms