<html> <head> <title>Docs For Class smbHash</title> <link rel="stylesheet" type="text/css" href="../media/style.css"> </head> <body> <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> <tr> <td class="header_top">modules</td> </tr> <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> <tr> <td class="header_menu"> [ <a href="../classtrees_modules.html" class="menu">class tree: modules</a> ] [ <a href="../elementindex_modules.html" class="menu">index: modules</a> ] [ <a href="../elementindex.html" class="menu">all elements</a> ] </td> </tr> <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="200" class="menu"> <div id="ric"> <p><a href="../ric_INSTALL.html">INSTALL</a></p> <p><a href="../ric_README.html">README</a></p> </div> <b>Packages:</b><br /> <a href="../li_configuration.html">configuration</a><br /> <a href="../li_Help.html">Help</a><br /> <a href="../li_LDAP.html">LDAP</a><br /> <a href="../li_lib.html">lib</a><br /> <a href="../li_lists.html">lists</a><br /> <a href="../li_main.html">main</a><br /> <a href="../li_modules.html">modules</a><br /> <a href="../li_PDF.html">PDF</a><br /> <a href="../li_profiles.html">profiles</a><br /> <a href="../li_selfService.html">selfService</a><br /> <a href="../li_tests.html">tests</a><br /> <a href="../li_tools.html">tools</a><br /> <a href="../li_types.html">types</a><br /> <br /><br /> <b>Files:</b><br /> <div class="package"> <a href="../modules/_lib---modules---account.inc.html"> account.inc </a><br> <a href="../modules/_lib---baseModule.inc.html"> baseModule.inc </a><br> <a href="../modules/_lib---createntlm.inc.html"> createntlm.inc </a><br> <a href="../modules/_templates---account---edit.php.html"> edit.php </a><br> <a href="../modules/_lib---modules---ieee802device.inc.html"> ieee802device.inc </a><br> <a href="../modules/_lib---modules---inetLocalMailRecipient.inc.html"> inetLocalMailRecipient.inc </a><br> <a href="../modules/_lib---modules---inetOrgPerson.inc.html"> inetOrgPerson.inc </a><br> <a href="../modules/_lib---modules---kolabUser.inc.html"> kolabUser.inc </a><br> <a href="../modules/_lib---lamdaemon.inc.html"> lamdaemon.inc </a><br> <a href="../modules/_lib---modules---ldapPublicKey.inc.html"> ldapPublicKey.inc </a><br> <a href="../modules/_lib---modules.inc.html"> modules.inc </a><br> <a href="../modules/_lib---modules---nisMailAlias.inc.html"> nisMailAlias.inc </a><br> <a href="../modules/_lib---modules---posixAccount.inc.html"> posixAccount.inc </a><br> <a href="../modules/_lib---modules---posixGroup.inc.html"> posixGroup.inc </a><br> <a href="../modules/_lib---modules---quota.inc.html"> quota.inc </a><br> <a href="../modules/_lib---modules---sambaAccount.inc.html"> sambaAccount.inc </a><br> <a href="../modules/_lib---modules---sambaDomain.inc.html"> sambaDomain.inc </a><br> <a href="../modules/_lib---modules---sambaGroupMapping.inc.html"> sambaGroupMapping.inc </a><br> <a href="../modules/_lib---modules---sambaSamAccount---sambaMungedDial.inc.html"> sambaMungedDial.inc </a><br> <a href="../modules/_lib---modules---sambaSamAccount.inc.html"> sambaSamAccount.inc </a><br> <a href="../modules/_lib---modules---shadowAccount.inc.html"> shadowAccount.inc </a><br> </div><br /> <b>Classes:</b><br /> <div class="package"> <a href="../modules/account.html">account</a><br /> <a href="../modules/accountContainer.html">accountContainer</a><br /> <a href="../modules/baseModule.html">baseModule</a><br /> <a href="../modules/ieee802Device.html">ieee802Device</a><br /> <a href="../modules/inetLocalMailRecipient.html">inetLocalMailRecipient</a><br /> <a href="../modules/inetOrgPerson.html">inetOrgPerson</a><br /> <a href="../modules/kolabUser.html">kolabUser</a><br /> <a href="../modules/ldapPublicKey.html">ldapPublicKey</a><br /> <a href="../modules/nisMailAlias.html">nisMailAlias</a><br /> <a href="../modules/posixAccount.html">posixAccount</a><br /> <a href="../modules/posixGroup.html">posixGroup</a><br /> <a href="../modules/quota.html">quota</a><br /> <a href="../modules/samba3domain.html">samba3domain</a><br /> <a href="../modules/sambaAccount.html">sambaAccount</a><br /> <a href="../modules/sambaDomain.html">sambaDomain</a><br /> <a href="../modules/sambaGroupMapping.html">sambaGroupMapping</a><br /> <a href="../modules/sambaMungedDial.html">sambaMungedDial</a><br /> <a href="../modules/sambaSamAccount.html">sambaSamAccount</a><br /> <a href="../modules/shadowAccount.html">shadowAccount</a><br /> <a href="../modules/smbHash.html">smbHash</a><br /> </div> </td> <td> <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> <h1>Class: smbHash</h1> Source Location: /lib/createntlm.inc<br /><br /> <table width="100%" border="0"> <tr><td valign="top"> <h3><a href="#class_details">Class Overview</a></h3> <pre></pre><br /> <div class="description">Calculates NT and LM hashes.</div><br /><br /> </td> <td valign="top"> <h3><a href="#class_methods">Methods</a></h3> <ul> <li><a href="../modules/smbHash.html#methoddoHash">doHash</a></li> <li><a href="../modules/smbHash.html#methodlmhash">lmhash</a></li> <li><a href="../modules/smbHash.html#methodnthash">nthash</a></li> </ul> </td> </tr></table> <hr /> <table width="100%" border="0"><tr> </tr></table> <hr /> <a name="class_details"></a> <h3>Class Details</h3> <div class="tags"> [line 41]<br /> Calculates NT and LM hashes.<br /><br /><p>The important functions are lmhash($password) and nthash($password).</p><br /></div><br /><br /> <div class="top">[ <a href="#top">Top</a> ]</div><br /> <hr /> <a name="class_methods"></a> <h3>Class Methods</h3> <div class="tags"> <hr /> <a name="methoddoHash"></a> <h3>method doHash <span class="smalllinenumber">[line 189]</span></h3> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>array doHash( array $in, array $key, boolean $forw)</code> </td></tr></table> </td></tr></table><br /> <br /><br /> <h4>Parameters:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="type">array </td> <td><b>$in</b> </td> <td></td> </tr> <tr> <td class="type">array </td> <td><b>$key</b> </td> <td></td> </tr> <tr> <td class="type">boolean </td> <td><b>$forw</b> </td> <td></td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodlmhash"></a> <h3>method lmhash <span class="smalllinenumber">[line 334]</span></h3> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>string lmhash( [string $password = ""])</code> </td></tr></table> </td></tr></table><br /> Calculates the LM hash of a given password.<br /><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>return:</b> </td><td>hash value</td> </tr> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /><br /> <h4>Parameters:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="type">string </td> <td><b>$password</b> </td> <td>password</td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <hr /> <a name="methodnthash"></a> <h3>method nthash <span class="smalllinenumber">[line 351]</span></h3> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>string nthash( [string $password = ""])</code> </td></tr></table> </td></tr></table><br /> Calculates the NT hash of a given password.<br /><br /><br /><br /> <h4>Tags:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><b>return:</b> </td><td>hash value</td> </tr> <tr> <td><b>access:</b> </td><td>public</td> </tr> </table> </div> <br /><br /> <h4>Parameters:</h4> <div class="tags"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="type">string </td> <td><b>$password</b> </td> <td>password</td> </tr> </table> </div><br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> </div><br /> <div class="credit"> <hr /> Documentation generated on Thu, 07 Feb 2008 20:26:24 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.0</a> </div> </td></tr></table> </td> </tr> </table> </body> </html>