Lines Matching refs:password
35 $password = random_bytes(32);
36 echo "Using password: ";
37 var_dump(base64_encode($password));
38 $hash = sodium_crypto_pwhash_str($password, $ops, $mem);
40 var_dump(password_verify($password, $hash));
43 $password[0] = chr(ord($password[0]) ^ 1);
44 var_dump(password_verify($password, $hash));
49 Using password: string(44) "%s"
53 Using password: string(44) "%s"
57 Using password: string(44) "%s"
61 Using password: string(44) "%s"
65 Using password: string(44) "%s"
69 Using password: string(44) "%s"
73 Using password: string(44) "%s"
77 Using password: string(44) "%s"
81 Using password: string(44) "%s"