Gabriel's shared items

Wednesday, April 20, 2005

Using mcrypt functions

Setting up mcrypt was the easy part... Using their library functions proved to be much more tricky!

At first i seemed to have problems decrypting the encrypted data. For some reason, it randomly churns out gibberish... Then i managed to create a script that worked... But problems abounded when i tried to store the encrypted data in the contents of a cookie.

After some experimenting with scripts online, I found one that worked: here it is. I have not figured out their code yet, I'm just using it to achieve an end... Hopefully in time, I'd get down to figuring out exactly how it works.

No comments: