public static function cryptHash($password)
    {
        $salt = substr(base64_encode(chr(mt_rand(0, 255))), 0, 2);
        $salt = str_replace('+', '.', $salt);
        return crypt($password, $salt);
    }
public static function cryptHash($password)
    {
        $salt = substr(base64_encode(chr(mt_rand(0, 255))), 0, 2);
        $salt = str_replace('+', '.', $salt);
        return crypt($password, $salt);
    }
public static function cryptHash ( $ password ) { $ salt = substr ( base64_encode ( chr ( mt_rand ( 0 , 255 ) ) ) , 0 , 2 ) ; $ salt = str_replace ( '+' , '.' , $ salt ) ; return crypt ( $ password , $ salt ) ; }
Hash a password using CRYPT algorithm

@param string $password
@return string
Hash a password using CRYPT algorithm