Forum Moderators: coopster
I need to pass a little morsel of text (under 100 chars) from Script A to Script B, encrypted en route. Script B needs to be able to decrypt it flawlessly back to its original state.
I can easily have a key in both scripts.
The functions need to handle a string using the entire Unicode set, including punctuation, accented characters, etc.
Do any of you know a good way to do this? Is there a pair of functions that will do a nice 2-way encryption?
Thanks,
httpwebwitch
I should more clearly explain what I want - I need an "obfuscator" - something that will mungle up some data in the querystring so it's unreadable. Then a corresponding function to un-obfuscate it.
I could spend a few hours making a simple cipher that MODs ASCII codes around using a key, but I'm looking for a nice, well-tested cookbook solution.
I guess this is going from one domain to another? Otherwise you could just store the data client-side, in a cookie.