CheckPassword($sPlain, $sEncrypted); } return FALSE; } /** * This function makes a new password from a plaintext password. * * @param $sPlain * @return string */ function oos_encrypt_password($sPlain) { if (!class_exists('PasswordHash')) { require_once MYOOS_INCLUDE_PATH . '/includes/lib/phpass/PasswordHash.php'; } $oHasher = new PasswordHash( 8, TRUE ); return $oHasher->HashPassword($sPlain); }