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?
The two encryption methods you mentioned are usually sufficient. Others, such as aes encryption, are very useful. You can learn more about it