summaryrefslogtreecommitdiffstats
path: root/tests/crypt_gensalt.phpt
blob: 945e520705d30f89a63e884a9afe45155a519d93 (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(CRYPT_PREFIX_STD_DES));
var_dump(crypt_gensalt(CRYPT_PREFIX_EXT_DES));
var_dump(crypt_gensalt(CRYPT_PREFIX_MD5));
var_dump(crypt_gensalt(CRYPT_PREFIX_BLOWFISH));
var_dump(crypt_gensalt(CRYPT_PREFIX_SHA256));
var_dump(crypt_gensalt(CRYPT_PREFIX_SHA512));
var_dump(crypt_gensalt(CRYPT_PREFIX_SCRYPT));
var_dump(crypt_gensalt(CRYPT_PREFIX_GOST_YESCRYPT));
var_dump(crypt_gensalt(CRYPT_PREFIX_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"