Browser cookie encryption

I want to encrypt cookie in browser

Please tell me different ways to do this.

thanks

+4
source share
2 answers

Your question is not very clear. You must use HTTPS to connect and set a secure flag to ensure that cookies are always sent encrypted. I guess this is what you want to do.

If you are thinking of doing your own encryption in JavaScript, do not do this because you will not get a level of security or performance anywhere close to SSL / TLS that is already built into the browser.

If you are serious about cookie security, I recommend reading the protocol for the secure cookie protocol of Liu, Kovacs, Juan and Guda ( PDF ).

+7
source

You never encrypt cookies. If you need to, then your security model is wrong. You need to talk more about the problem you are trying to solve for us in order to help you better.

EDIT: Why downvote? Explain when you disagree.

+1
source

Source: https://habr.com/ru/post/1341632/


All Articles