session data in cookies

Hi. I'm have a web application where I store the session data in cookies. Can I encrypt this data using JCE?Though some code snippets would be great, a simple yes or no answer will at least get me going. Thanks.Vinny.
[246 byte] By [vindi1976] at [2007-9-26 12:23:43]
# 1

Yep, I'm about to do the same thing. Use a provider like SunJCE or BouncyCastle and use a Cipher to encrypt the cookie value with the algorithm of your choice.

I am having trouble getting Tomcat to recognise JCE though and so far cant get it to work, but to answer your question, Yes, it can be done.

rgunder3 at 2007-7-2 3:03:21 > top of Java-index,Security,Cryptography...