The goal of the contract is to store password securely. But the password is visible to all and anybody can set the password.
In Line 14: string private s_password;
the s_password is declared as private it is still visible to anyone who wants to inspect the blockchain's contents. Storing passwords in a smart contract would expose them to the public, making it a significant security risk.
The password will be revealed.
Git, Foundry
You can hash the password before storing it to the blockchain.
Private functions and state variables are only visible for the contract they are defined in and not in derived contracts. In this case private doesn't mean secret/confidential
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.