YUNOVA · Ethical Hacking · Module 8: Passwords and hashing
How passwords are stored and hashed
How passwords are stored and hashed
Key points
- अच्छा system password को plain text में नहीं रखता; वह उसका hash रखता है, यानी एक one-way fingerprint जिसे वापस original password में नहीं बदला जा सकता।
- Salt = हर password के साथ जुड़ा random मान, जिससे एक जैसे passwords के hash अलग बनते हैं। इससे ready-made tables बेकार हो जाते हैं।
- मज़बूत storage के लिए bcrypt, scrypt, Argon2 या PBKDF2 जैसे slow, purpose-built password hashing algorithms इस्तेमाल होते हैं।
- Developers के लिए नियम: अपना hashing scheme खुद न बनाएँ, और user passwords को logs या database में plain text में कभी न रखें।