I want to store sensitive information into a database by encrypting it but I also want to decrypt the information later. I haven't gotten mcrypt to cleanly install with PHP yet so I don't know if I can encrypt with one password and then decrypt with another. I assume it's the same password to encrypt and decrypt. The problem is that I have to write the password into the code. What I want to do is use a private/public key idea. I want to encrypt using one password and decrypt using a second password. The first password would be coded into the scripts to automatically encrypt the information but I would have to input the second password manually to read the information. Anyone know how I can accomplish this?