I want to hash password before storing to database. I am not able to understand which approach will be suitable.For examples
Hash plain password directly with SHA-1, SHA-256 etc and then store in DB. Encrypt password firsts using AES-256 and then hash it using SHA-1, SHA-256 etc and store in DB.
Please help me which approach will be suitable and how I can validate the password when client logins.