I want to encrypt some text in URL with a simple java-script algorithm and then decrypt it at code behind of an ASP.NET page using C#.
ROT13 is a good choice but unfortunately I cannot use it due to some confidential details. Anything like that would help but I don't know the famous ones. Security is not a matter at all, just twisting the string in some way and retrieve it later.
ROT13? sorry, couldn't resist. Encryption with Javascipt is futile, you cant sufficiently hide the encryption algorythm, making it worthless.IDS/IPS.