@HamZa I once had a guy explain to me that adding salts to passwords, then encrypting them with AES and using the hash of the password as password for AES is "industry standard". So his model looked like: aes(hash(password), password+salt). Upon login, the user input would be hashed, the hash would be used to decrypt the password, and then the input plus salt would be compared to whatever was decrypted.