Here's the story:
I have to pass some classified information from one script to another script. In the first script I need to encrypt the data first and then I HAVE TO attach the encrypted data into a GET request and send it to another script, the url would look like this :
http://mydomain.com/mysecondscript.php?secret={encrypted stuff}
My current encrypt method is based on base64, the problem with this method is that if I have a lot of stuff to encrypt, the encrypted result could get very long, if it's longer than 255 characters or so, the second script will not be able to decrypt it because the string will be chopped.
So I'm looking for a better encrpt method that can control the length of the encrypted result.
Any ideas?