Lines Matching refs:password
24 $password = random_bytes(32);
25 echo "Using password: ";
26 var_dump(base64_encode($password));
27 $hash = password_hash($password, 'argon2id', $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));
39 Using password: string(44) "%s"
43 Using password: string(44) "%s"
47 Using password: string(44) "%s"
51 Using password: string(44) "%s"