Make encrypted cookies more robust, secure, and more paranoid

Hi, I added some features to encrypted cookies. Could you review the patch and let me know what you think?