Lines Matching refs:password
24 $password = random_bytes(32);
25 echo "Using password: ";
26 var_dump(base64_encode($password));
27 $hash = password_hash($password, 'argon2i', $opts);
29 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
32 $password[0] = chr(ord($password[0]) ^ 1);
33 var_dump(sodium_crypto_pwhash_str_verify($hash, $password));
38 Using password: string(44) "%s"
42 Using password: string(44) "%s"
46 Using password: string(44) "%s"
50 Using password: string(44) "%s"
54 Using password: string(44) "%s"
58 Using password: string(44) "%s"
62 Using password: string(44) "%s"
66 Using password: string(44) "%s"
70 Using password: string(44) "%s"