project-red-stream icon indicating copy to clipboard operation
project-red-stream copied to clipboard

Security: Password Hashing

Open codeCraft-Ritik opened this issue 10 months ago • 0 comments

The current system stores passwords in plain text, which is a significant security risk. You should implement PHP's native password hashing.

File to edit: project-red-stream/register.php

Action: Update the password variable to use a hash before saving to the database.

Code Change: $password = password_hash($_POST['password'], PASSWORD_DEFAULT);

File to edit: project-red-stream/login.php Action: Replace the direct SQL password check with password_verify().

codeCraft-Ritik avatar Feb 01 '26 13:02 codeCraft-Ritik