Page 1 of 1

encrypting then decrypting help

Posted: Fri Aug 11, 2006 1:43 pm
by Charles256
I need a user to be able to put in a number, say 1234, then store it in the database like ht30ng30n or some jazz.
then i can pull it from the database and instead of showing the garbage i show 1234. crypt() appears to be a hash which means i can't retrieve the value,right? if so then what function can I use to recieve my desire result? If I'm usnig the wrong terminology please feel free to correct me. :-D

Posted: Fri Aug 11, 2006 1:52 pm
by toasty2
You could use base64_encode, but thats not really true encryption, I am seeking a similar option for my portal system. Mcrypt doesn't work for me (is it because my host uses the cgi version of php, or is mcrypt a library?) Whoever answers this, can probably answer my post too.

Posted: Fri Aug 11, 2006 1:53 pm
by Luke

Posted: Fri Aug 11, 2006 2:15 pm
by toasty2
Thats dandy :x , I use a host, I for sure know they won't install it for me.