- var_dump: documentation ( source)
- crypt: documentation ( source)
- str_repeat: documentation ( source)
<?php
for ($i = 64; $i < 80; ++$i) {
echo "{$i}.\t".crypt(str_repeat('a', $i), '$2y$04$usesomesillystringforsalt$')."\n";
}
$x = crypt("abc\0defg", '$2y$04$usesomesillystringforsalt$');
var_dump($x === crypt("abc", '$2y$04$usesomesillystringforsalt$'));