title: Is password self-encryption viable?
body: <p>I've been reading about password storage, and have basically found 2 commonly used techniques.</p>
  
  <ol>
  <li>encrypting all of the passwords stored with a single key. </li>
  <li>Using hashes
  <ul>
  <li>Using hashes with salt.</li>
  </ul></li>
  </ol>
  
  <p>Is there a flaw in storing the password "encrypted by itself", i.e. encrypting a txt which says <code>password1</code> with the password <code>password1</code> without storing it unencrypted, and when a user wants to log in, decrypt, compare and grant access (or not)?</p>
  
  <p>I am not very literate in this topic, so, can somebody enlighten me?</p>