How to save encrypted data in cookie (using php)?

前端 未结 5 850
耶瑟儿~
耶瑟儿~ 2020-12-15 14:49

I would like to save data in cookies (user name, email address, etc...) but I don\'t the user to easily read it or modify it. I need to be able able to read the data back. H

5条回答
  •  离开以前
    2020-12-15 15:37

    If you absolutely must do this then you can use the symmetric encryption functionality in mcrypt.

    http://php.net/mcrypt

提交回复
热议问题