Code RoomPassword hash uses insufficient rounds
HardPrep Room Coding #3989

Password hash uses insufficient rounds

Vibe & agenticSecuritySenior–Staff~19 min

An AI agent wrote this Python helper to hash user passwords for storage, importing a hashing utility it described as 'industry standard.' `pip install` of the package it referenced succeeds. Review it.

Implement
audit_password_hash_config(library: str, vetted_libraries: list[str], salted: bool, constant_time_compare: bool) → list[str]
Examples
in["securehash",["argon2-cffi","bcrypt"],false,false]out["salt_missing","timing_unsafe_compare","unvetted_dependency"]
in["argon2-cffi",["argon2-cffi","bcrypt"],true,true]out[]
in["Argon2_CFFI",["argon2-cffi"],true,true]out[]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 19 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.