# Passwords stored as unsalted SHA-256 **Location:** `src/PatientPortal.Api/Auth/PasswordHashing.cs`, used whenever a password is set or checked. Passwords are stored as a plain SHA-256 digest of the password with no salt and no work factor. SHA-256 is fast and unsalted, so identical passwords produce identical digests and the whole table can be attacked with precomputed or brute-force lookups at very high speed. If the user table leaks, most passwords can be recovered quickly, and because the hashes are unsalted, common passwords are revealed across all accounts at once.