How to store and manage password in database for use in scratch card?

90 Views Asked by At

I am developing a web application in which providing a scratch card with a user name and password. Storing password in database in unencrypted form is not secure. But I want the passwords in plain text for scratchcard. I am thinking about the following options

  1. Use decryptable algorithm for encription.
  2. Store unencrypted passsword in another table.
  3. Store the unencrypted password in local computer.

Which is the better option?

1

There are 1 best solutions below

1
On

That's not possible.

MD5 isn't supposed to be decrypt-able. Hash's are supposed to be one way functions: http://en.wikipedia.org/wiki/Hash_function

Is md5 decryption possible?