mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 11:00:56 +00:00
fix: argon2 test
This commit is contained in:
parent
ced7569086
commit
766f3345a2
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ mod tests {
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_verify_password() {
|
async fn test_verify_password() {
|
||||||
const HASH: &str = "$argon2id$v=19$m=4096,t=3,p=1$c2VjcmV0bHl0ZXN0aW5nZXZlcnl0aGluZw$xEzH8wD/ZjzgZTDTl3YtzMFCfcVa5M5m9y6NfSyB1n4";
|
const HASH: &str = "$argon2i$v=19$m=6000,t=3,p=10$WE9xCQmmWdBK82R4SEjoqA$TZSc6PuLd4aWK2x2WAb+Lm9sLySqjK3KLbNyqyQmzPQ";
|
||||||
const PASSWORD: &str = "test";
|
const PASSWORD: &str = "test";
|
||||||
|
|
||||||
let result = super::verify_password(PASSWORD.to_string(), HASH.to_string())
|
let result = super::verify_password(PASSWORD.to_string(), HASH.to_string())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue