secDevLabs icon indicating copy to clipboard operation
secDevLabs copied to clipboard

Snake pro Meiry Solution

Open meiryleneavelino opened this issue 11 months ago • 0 comments

For this solution, bcrypt was used to encrypt the user's password before storing it in the database. Since tcpdump was still capturing passwords, I noticed that the front-end requests were being sent in plain text.

To address this, I generated two self-signed certificates with CN = localhost, uploaded the files to the project, and, in the main.go class, I created a function to start an HTTPS server and another function to redirect HTTP requests to HTTPS.

meiryleneavelino avatar Feb 07 '25 23:02 meiryleneavelino