What encryption algorithm is best for encrypting cookies?

后端 未结 13 1108
感动是毒
感动是毒 2020-11-30 17:29

Since this question is rather popular, I thought it useful to give it an update.

Let me emphasise the correct answer as given by AviD to

13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 17:36

    While both a very strong ones, AES is a standard.

    As for security of small chunks of data: the smaller - the better. The less encrypted data is exposed, the longer you can use the key. There is always a theoretical limit of how much data can be encrypted within one key of given algorithm without exposing system to risks.

提交回复
热议问题