· Igor Ilic

How to generate secure passwords and hashes online

Password security in 2026

Data breaches are increasingly common. Understanding how to generate strong passwords and hash them correctly is essential for every developer.

Generating strong passwords

Here are the key characteristics of a strong password:

  • Length matters most — aim for at least 16 characters. Each character exponentially increases the search space

  • Mix character types — uppercase, lowercase, digits, and special characters

  • Avoid patterns — no dictionary words, keyboard patterns (qwerty), or personal info

  • Never reuse passwords — each service needs a unique password

Hash algorithms compared

AlgorithmBit lengthUse caseSecurity
MD5128Checksums, legacyBroken — do not use
SHA-1160Git commits, legacyDeprecated
SHA-256256Data integrity, TLSSecure for integrity
SHA-512512High-security integrityVery secure
bcrypt192Password storageIndustry standard
Argon2idConfigurablePassword storageModern gold standard

Why not to use MD5 and SHA-1 for passwords

A common misconception is that any hash function works for password storage. MD5, SHA-1, SHA-256, and SHA-512 are all fast hash functions designed for data integrity, not passwords.

An attacker can compute billions of MD5 hashes per second using consumer GPUs. That makes brute-force trivial.

Password hashing algorithms like bcrypt and Argon2id are deliberately slow and memory-hard. They are designed to resist GPU-based attacks. They also use random salts to prevent rainbow table attacks.

Best practices for developers

  • Always use bcrypt or Argon2id for password storage

  • Use a high cost factor (work factor for bcrypt, memory/time for Argon2)

  • Hash on the server side, even if clients send pre-hashed passwords

  • Use SHA-256 or SHA-512 only for data integrity (file checksums, API tokens)

Try the tools

Generate strong passwords with the password generator. Compute hashes with the cryptography tools — MD5, SHA-1, SHA-256, SHA-512, bcrypt, and argon2.