title: Why would you ever want to store a plain-text or encrypted(not hashed) password in a database?
body: <p>I've heard quite a few reasons for storing hashed passwords in a database. However, there are almost always options in authentications APIs to store passwords as plain text or encrypted. </p>
  
  <p>Is there ever a reason you would want to store a password as plain text or encrypted in a database? </p>
  
  <p><strong>Note</strong> To be clear I know that storing non-hashed passwords are almost always <strong>bad</strong>.(as far as I know anyway) My question is why do most authentication APIs include options to store passwords as encrypted or plain text.</p>