Page 2 of 2

Posted: Sat Aug 12, 2006 10:29 am
by feyd
Image
Sorry for throwing the thread off topic GWsux. It may be best to create a new thread on this line of discussion unless GWsux wants to continue moving off topic.

Posted: Sat Aug 12, 2006 10:46 am
by Ollie Saunders
Sorry for throwing the thread off topic GWsux
My fault too.

In response to your problem GWsux, you can decrypt with mcrypt. Cytography is as much about decryption as encryption. Hashing and mhash are irreversible .

Posted: Sat Aug 12, 2006 10:49 am
by toasty2
Er, mcrypt is impossible in my position, I have a webhost, and apparently they don't have mcrypt, and I really doubt they would install it for me. But, I don't need encryption anymore, I was going to save some important user info (encrypted) inside a cookie, but now I've thought of a better way using sessions. Thank you all anyway :)

Posted: Sat Aug 12, 2006 10:53 am
by feyd
If the webhost is a shared one, your sessions are likely readable by other users. I would encrypt the data there too, if it's actually sensitive.

Posted: Sat Aug 12, 2006 12:02 pm
by Benjamin
All you have to do is run the encrypted data through the same function with the same key to decrypt it.