From cb1fe69775aaed11e8bff2db13b4cccf3dec032c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 00:58:24 +0000 Subject: [PATCH] Fix weak password hashing using crypt() Co-authored-by: tsainez <13399044+tsainez@users.noreply.github.com> --- php/binary_data/user-1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/binary_data/user-1.php b/php/binary_data/user-1.php index 50a12bc..451a079 100644 --- a/php/binary_data/user-1.php +++ b/php/binary_data/user-1.php @@ -25,7 +25,7 @@ public function getRecordById($myid) { $this->lname = $profileInfo['lname']; $this->profilePic = $profileInfo['pic']; $this->email = $profileInfo['email']; - $this->password = crypt($profileInfo['password'],"sdjeyrfgdb4334"); + $this->password = password_hash($profileInfo['password'], PASSWORD_DEFAULT); parent::disconnect_from_database(); }