🔐
Security

Password hashing: bcrypt, argon2

09.03.2025
← All articles

MD5/SHA-1 obsolete. Today — modern hashing.

Why just hash isn't enough

Rainbow tables, brute force GPU.

bcrypt

Slow — brute force hard. Cost 12-14.

PHP

password_hash($pass, PASSWORD_BCRYPT).

Argon2

PHC winner. PASSWORD_ARGON2ID.

Salt

Automatic.

Pepper

In .env, not DB.

2FA

Always add.

Related articles

🔐 Laravel Application Security: Debug Mode, APP_KEY and Protecting .env 🧩 Checking Composer packages for security: a guide for PHP project owners 🈲 Japanese SEO spam hack: strange pages from your site appear in Google 🐘 Critical PHP vulnerabilities: why you should not delay updating
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓