Home  >  Q&A  >  body text

What are the commonly used cookie encryption methods?

thinkphp5.1 Framework

First get the current timestamp, then use the timestamp to complete the username to 50 digits at both ends, and then use sha1 or md5 to encrypt it. Can this be done? ?

Or is there a better way?

What parameters are generally set for cookies?

鸿运达鸿运达2149 days ago1671

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2018-11-03 22:10:18

    The two encryption methods you mentioned are usually sufficient. Others, such as aes encryption, are very useful. You can learn more about it

    reply
    0
  • Cancelreply