Today I've read about AES (A dvanced E ncryption S tandard) and I was asking myself questions which I don't have the knowledge to answer them myself.
I've read in Wikipedia that AES is safe to use even for Top Secret files and until now, no one found a way to hack it. There were indeed some tries to use Side-chanel attacks, but it didn't go that well since it isn't attacking the encryption itself.
In light of what I've read about it, I was wondering, should I use AES to encrypt passwords in my DB? I can save the encrypted password, or rather use hash()
function to encrypt the AES encryption of a string in a database which gives it somehow a "double-layered" protection. I might be completely wrong here, I'm just wondering what's the reason it isn't that common when it comes to storing encrypted strings in a DB. I guess that's because there is a decryption method, but still, to decrypt it, you will have to know how many rounds the code used to encrypt it.
Thanks in advance!