예제 #1
0
function account_genunixpw($plainpw)
{
    // begin changed by helix on 2003-01-20
    return crypt($plainpw, account_gensalt());
    //	return crypt($plainpw);
    // end changed by helix on 2003-01-20
}
예제 #2
0
/**
 * account_genunixpw() - Generate unix password
 *
 * @param		string	The plaintext password string
 * @return		The encrypted password
 *
 */
function account_genunixpw($plainpw)
{
    // ncommander: Support clear password hashing
    // for usergroup_plain.php
    global $unix_cipher;
    if (strcasecmp($unix_cipher, 'Plain') == 0) {
        return $plainpw;
    } else {
        return crypt($plainpw, account_gensalt());
    }
}