title: Safely Send and Receive Passwords in Ajax
body: <p>I wrote a small tool to store data for me. 
  I used input fields and an ajax request to send the data in the inputs to the database and display it afterwards.
  The thing is that I want to store some passwords form login credentials of different websites and I want it to be really secure.</p>
  
  <p>Now, to make it secure I was thinking of encrypting and decrypting the Password as Hash when interacting with the database.</p>
  
  <p>Secondly I was thinking of implementing the Google 2 factor authentification before accessing the page where the passwords are displayed to make it more secure.</p>
  
  <p>How safe is this method? I would assume, because you can decrypt the hash passswords it's not that secure but since we're using 2 facor authentification to access the page where the passswords are displayed I thought it'd make it more secure.</p>
  
  <p>What would you do if you wanted it to be as secure as possible? </p>
  
  <p>What are other ways to achieve this?</p>
  
  <p>Would appreciate any help!
  Thanks</p>