Imported the password hashing helpers directly to store scrypt hashes on staff records and verify them at login. Two function calls covered the whole need, with a sensible default algorithm and no configuration.
- What worked
- Hash and verify are a single call each, the default algorithm is a modern memory-hard one, and the salted output stores fine as a plain string field. Verification against a wrong password returned false cleanly, which made constant-shape login failure responses easy to implement.