Never store plain text or use fast hashes like MD5/SHA-256 alone. Use a slow, salted password hashing algorithm such as Argon2id, bcrypt or scrypt, through a well-tested library. Add rate limiting on login and support multi-factor authentication.
Web security interview questions and answers | IndianWebDevelopers