


<!-- Generated from file 'crypt.man' by tcllib/doctools with format 'tmml' -->
<manpage id='crypt' cat='cmd' title='crypt' version='2.1.3' package=''>
<head>
<info key='copyright' value='Copyright (c) 1996-2003, Andreas Kupries &lt;andreas_kupries@users.sourceforge.net&gt;'/>
</head>
<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>
<section id='section1'>
<title>DESCRIPTION</title>

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>.


<p>

</p>
<dl>

<dle>
<dt><cmd>crypt</cmd> <m>password</m> <m>salt</m></dt>
<dd>

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

</dd>
</dle>

</dl>



</section>
<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>

</manpage>
