且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP将密码存储在Cookie中

更新时间:2023-01-12 11:12:08

在cookie中存储密码的哈希值

Store a salted hash of the password in the cookie

$salt = 'snfcikkfbnvekrew';
$cookie_value = md5($salt . $password);