minnesotan
Programmer
My webmail application uses public key encryption, and does all encryption/decryption in Java on the client's machine. Public and private keys are generated from the user's password so that a given password will always generate the same key pair. The password and private key never leave the user's machine so there is no possibility that a third party (myself included) could intercept and read the user's message.
I'd like to give the user the option to remember his password and key pair in a cookie. However, if this results in the password and private key being sent to the server, it defeats the purpose. What I need is a cookie that can be set and read from JavaScript but which never gets sent to the server.
I think I could to this by funneling all http requests through a Java applet which could filter out the offending cookies, but that would be very ugly.
Does anyone know of a way to do this?
I'd like to give the user the option to remember his password and key pair in a cookie. However, if this results in the password and private key being sent to the server, it defeats the purpose. What I need is a cookie that can be set and read from JavaScript but which never gets sent to the server.
I think I could to this by funneling all http requests through a Java applet which could filter out the offending cookies, but that would be very ugly.
Does anyone know of a way to do this?