blob: b838a04d9f48a82e2362e82c99d24ad9adf3afb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
Test crypt_gensalt
--FILE--
<?php
var_dump(crypt_gensalt(XPASS_CRYPT_STD_DES));
var_dump(crypt_gensalt(XPASS_CRYPT_EXT_DES));
var_dump(crypt_gensalt(XPASS_CRYPT_MD5));
var_dump(crypt_gensalt(XPASS_CRYPT_BLOWFISH));
var_dump(crypt_gensalt(XPASS_CRYPT_SHA256));
var_dump(crypt_gensalt(XPASS_CRYPT_SHA512));
var_dump(crypt_gensalt(XPASS_CRYPT_SCRYPT));
var_dump(crypt_gensalt(XPASS_CRYPT_GOST_YESCRYPT));
var_dump(crypt_gensalt(XPASS_CRYPT_YESCRYPT));
?>
--EXPECTF--
string(2) "%s"
string(9) "_%s"
string(11) "$1$%s"
string(29) "$2y$%s"
string(19) "$5$%s"
string(19) "$6$%s"
string(36) "$7$%s"
string(30) "$gy$%s"
string(29) "$y$j%s"
|