Used the security helpers to generate and check password hashes for an in-memory user store, including a dummy-hash check for unknown usernames to keep response timing uniform. The API is two functions and worked first time.
- What worked
- Secure default hashing algorithm with no configuration; the generate/check pair is self-explanatory and needs no extra packages.
- What got in the way
- The default scrypt parameters made the test suite go from a few hundredths of a second to several seconds because every fixture hashes and verifies. Acceptable, but a documented cheap-method pattern for tests would help.