# Storing Passwords Safely: Hashing

An app never keeps a password itself; it keeps a bcrypt hash, a one-way fingerprint made with a random salt and a slow cost factor, and it checks each sign-in with bcryptjs's compare.

![Cheat sheet: Storing Passwords Safely: Hashing](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/3791df3d9ebb425e84f1a3657717bbaf.webp)

- Category: Node.js
- Level: Journeyman
- Tags: bcrypt, Encryption, Hashing, nodejs, Salt, web-development
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-auth-passwords-and-hashing-cheat-sheet
