I\'m creating a server which can store cookies on the web that will contain application settings. The server will accept any data, but I want to encrypt all the settings before
You could try a Vernam Cypher with the password.
Basically you use the password as the key and then XOR the string to encrypt with the password. This can be reversed as well.
Here is a wikipedia page this type of encryption http://en.wikipedia.org/wiki/XOR_cipher
Example Code
function encrypt(key, value) {
var result="";
for(i=0;i
I haven't tested this but its probably close. you will notice the encrypt and decrypt functions should be identical