I have heard many reasons for storing hashed passwords in a database. However, there are almost always options in the authentication API for storing passwords in plain text or encryption.
Is there a reason why you would like to save the password as plain text or encrypted in the database?
Note To be clear, I know that storing non-hashed passwords is almost always bad . (as far as I know, one way or another). My question is why most authentication APIs include options for storing passwords in encrypted or plain text.
source
share