c# - how do I? simple scramble/encrypt string in server (ASP.NET) and unscramble/decrypt in javascript -
platform: server - asp.net 3.5 / c#; client side - javascript/jquery
this want do
- scramble string in asp.net webmethod (called through jquery ajax call) before sending client
- unscramble in javascript , display
i'm not looking @ sort of heavy duty encryption aes sha whatever. i'm interested in simple obfuscation - if user wants persevere , decrypt strings (which display anyway in sequence, it's don't want them see of them in mark-up) can, doesn't matter.
are there simple schemes this?
for clarity:
say want send pre-filled array client browser ["a'"b","c"]
when opens source on browser, he/she should see, say. ["m","n","o"]
but when display, recompute "a" , show it. that's all.
what ever intention may be... why not implement simplest "encryption"-algorithm out there
Comments
Post a Comment