Forum Moderators: coopster
I have been looking around on how to crypt and decrypt a variable.
I have looked up a phpnoise tutorial but I can't get it to go for me on the system I am using.
I would like to be able to encrypt an input and store it on a flat file database on one page. Then I would like to be able to call up the flat file database and decrypt it, on another page.
Do I have to use gnupgp for this?
Maybe a good read of this page and it's comments [php.net] could help solve it?
Sorry, I really wish I could provide an answer for you.
I think I could possibly generate the $iv in relation to the $email size and store it with the email in subscribers.txt separated by pipe. Then I can say foreach subscriber get their iv and email and match them up and then decrypt with the key.
That is how it's "supposed" to work. I'm not certain that will eliminate the error, but it would certainly be worth a try.