title: Encryption for storing user credentials
body: <p>I want to store the user credentials on the realtime cloud database. The basic idea of mine was to use the hashing with double salt and master password to hash it and store hashed credential and used salt. </p>
  
  <p>When I decrypt it I take the master password from user and decrypt the credentials using that with salt stored. But the problem is when user forgets the master password then all the credential data will be scrap since it cannot be decrypted without the combination of salt and master. And I cannot store the master password then it will become vulnerable.</p>
  
  <p>What should I do here to achieve my task?
  If anyone has completely different approach then also it would be fine.  </p>