<namesection> <name>crypt</name> <desc>Password hashing based on "crypt"</desc> </namesection> <synopsis> <syntax> package require <package>Tcl</package> <o>8.2</o> package require <package>Trf</package> <o>2.1.3</o> <cmd>crypt</cmd> <m>password</m> <m>salt</m> </syntax> </synopsis>
The command <cmd>crypt</cmd> is an interface to the <syscmd>crypt(3)</syscmd> function for the encryption of passwords. An alternative command for the same, but based on <term>md5</term> is <cmd>md5crypt</cmd>.

<dle>
<cmd>crypt</cmd> <m>password</m> <m>salt</m>
  Encrypts the <m>password</m> using the specified <m>salt</m> and returns the generated hash value as the result of the command.
</dle>

<seealso> <ref>trf-intro</ref> <ref>md5crypt</ref> </seealso> <keywords> <keyword>crypt</keyword> <keyword>password</keyword> <keyword>md5</keyword> <keyword>message digest</keyword> <keyword>mac</keyword> <keyword>hashing</keyword> <keyword>hash</keyword> <keyword>authentication</keyword> </keywords>