crypt(3trf)

πŸ’– crypt β€” the NAME moment πŸ’–

okay so bestie, this is crypt β€” password hashing based on "crypt". that's the whole vibe. ✨


🌸 SYNOPSIS 🌸

package require Tcl  ?8.2?

package require Trf  ?2.1.3?

crypt password salt

no cap, that's it. three lines and you're in. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so like… crypt is literally an interface to the crypt(3) function, and its whole job is the encryption of passwords. iconic behaviour, honestly. πŸ’…

and if you want the same thing but based on md5 instead? there's an alternative command for exactly that, and it's called md5crypt. two paths, one destiny, you pick. πŸŽ€

✨ crypt password salt ✨

this one right here:

  • encrypts the password using the specified salt 🌸
  • and returns the generated hash value as the result of the command πŸ’–

that's the whole deal. pass in a password, pass in a salt, get a hash back. main character energy from a two-argument command, we love to see it. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

  • md5crypt
  • trf-intro

go read those too, bestie, i'm not kidding. iykyk. 🌈


πŸ’œ KEYWORDS πŸ’œ

authentication, crypt, hash, hashing, mac, md5, message digest, password

(yeah that's the full list, i'm not skipping a single one, that would be a crime. πŸ’€)


Copyright (c) 1996-2003, Andreas Kupries <andreas_kupries@users.sourceforge.net>

respect the author fr fr 🫢


πŸ’Œ ok and for the little sign-off moment: this page lives in the Trf transformer commands corner of the world, version 2.1.3, filed under crypt(3trf). that's the source, that's the version, that's the whole page. slay, bye bestie πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from