Search⌘ K
AI Features

Hashing Algorithms

Explore the strengths and weaknesses of common hashing algorithms including MD5, SHA-1, SHA-256, BCrypt, and SCrypt. Understand why MD5 and SHA-1 are insecure for password storage, and why BCrypt and SHA-2 variants provide stronger protection. This lesson helps you choose appropriate algorithms to enhance password security in your Node.js applications.

We'll cover the following...

MD5

I often see the MD5 hashing algorithm used incorrectly. And while most databases support it by default, MD5 has been mathematically proven to be insecure. Given MD5, it is trivially easy to produce collisions on modern hardware. We’ve already seen it produce collisions earlier.

One of the most notable examples occurred in 2005. Researchers were able to generate collisions in MD5 checksums using a laptop. The ...