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

  1. scramble string in asp.net webmethod (called through jquery ajax call) before sending client
  2. 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

rot13


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -