forked from mtusi2026/mtusi2026lab4
Verify and archive lab4 grade three on SQLAlchemy
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
date: 2026-11-05T22:59:53Z commit: 763b0255575366082c4c6731b54611af717685a5
|
||||
$ psql -c "SELECT substring(password_hash from '^[$]argon2id[$]v=[0-9]+[$]m=[0-9]+,t=[0-9]+,p=[0-9]+[$]') AS kdf_prefix, username = 'seed_author' AS seed_stub, count(*) AS users, min(length(password_hash)) AS min_length, max(length(password_hash)) AS max_length FROM users GROUP BY 1, 2 ORDER BY 2"
|
||||
kdf_prefix | seed_stub | users | min_length | max_length
|
||||
---------------------------------+-----------+-------+------------+------------
|
||||
$argon2id$v=19$m=19456,t=2,p=1$ | f | 24 | 97 | 97
|
||||
(1 row)
|
||||
|
||||
$ psql -c "SELECT octet_length(token_hash) AS stored_bytes, count(*) AS sessions FROM sessions GROUP BY 1"
|
||||
stored_bytes | sessions
|
||||
--------------+----------
|
||||
32 | 23
|
||||
(1 row)
|
||||
|
||||
Reference in New Issue
Block a user