summaryrefslogtreecommitdiffstats
path: root/tests/crypt_checksalt.phpt
blob: 4fbd8bfa5abb6f4a929bf94d6db10d5f183573da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Test crypt_checksalt
--FILE--
<?php
var_dump(crypt_checksalt(crypt_gensalt(XPASS_CRYPT_STD_DES)) === CRYPT_SALT_METHOD_LEGACY);
var_dump(crypt_checksalt(crypt_gensalt()) === CRYPT_SALT_OK);
var_dump(crypt_checksalt("!not_a_valid_hash") === CRYPT_SALT_INVALID);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)