Implement Lab 7 security and infrastructure
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
sinveria
2026-11-22 11:55:09 +03:00
parent 20afc2c790
commit 6b5461a6b4
83 changed files with 8072 additions and 53 deletions
+7
View File
@@ -0,0 +1,7 @@
"""Verify the configured Argon2id cost parameters."""
from app.services.user_service import password_hasher
sample = password_hasher.hash("Lab7-test-password-only")
assert sample.startswith("$argon2id$v=19$m=19456,t=2,p=1$"), sample
assert password_hasher.verify("Lab7-test-password-only", sample)
print("PASS: Argon2id m=19456 KiB, t=2, p=1; salt is embedded in PHC hash")