Platform: Server - ASP.NET 3.5 / C#; client side - javascript/jQuery
This is what I want to do
- Scramble a string in ASP.NET WebMethod (called through a jQuery Ajax call) before sending to the client
- Unscramble it in javascript and display
I'm not looking at any sort of heavy duty encryption AES SHA whatever. I'm only interested in simple obfuscation - so if a user wants to persevere and decrypt the strings (which I will display anyway in a sequence, it's just that I don't want them to see all of them in the mark-up) then they can, it doesn't matter.
Are there any simple schemes to do this?
for clarity:
say I want to send a pre-filled array to the client browser with ["a'"b","c"]
when someone opens the source on the browser, he/she should see, say. ["m","n","o"]
but when I display, I would recompute it to "a" and show it. That's all.