Simple string encryption in .NET and Javascript
Posted
by jonathanconway
on Stack Overflow
See other posts from Stack Overflow
or by jonathanconway
Published on 2009-04-14T04:28:25Z
Indexed on
2010/03/15
9:59 UTC
Read the original article
Hit count: 297
I'm developing an ASP.NET MVC application in which I want to encrypt a short string on the server, using C#, and send it to the client-side.
Then on the client-side it will be decrypted through Javascript code.
Any thoughts on how to implement this?
Do you know of a simple encryption algorithm (doesn't have to be bullet-proof secure) that can be easily translated from C# to Javascript or vice-versa?
NOTE: I could do this entirely in C# and do the decryption through Ajax, but I'd prefer not to do it this way, as I want to reduce website traffic as much as possible.
© Stack Overflow or respective owner