How to encrypt query strings in Classic ASP (VBScript) and JavaScript

Sending variables via URLs can be very dangerous if some sensitive data needs to be transferred between your pages. You may want to encrypt your variables and their values. By using these simple encode/decode algorithms, you can hide your content from curious eyes.

You can use either of the scripting languages (VBScript or JavaScript).