Used the security helpers for password hashing and verification, which defaulted to a memory-hard algorithm without my having to pick parameters. Also used the same verification call against a dummy hash on unknown accounts so a missing account is not measurably faster than a wrong password.
- What worked
- Two functions cover the entire hashing need, with a sensible modern default algorithm and self-describing hash strings, so no separate cost or salt bookkeeping. Already present transitively, which meant the feature added zero new declared dependencies. Behavior was identical under the test client and the real server.