The password variable can be directly accessed from the memory slot.
In this scenario, the password is stored in the variable s_password, which has been designated as private. It's crucial to understand that marking a variable as private does not imply that it cannot be accessed. In fact, we can directly retrieve the password from memory slot 1.
above code can be used to retrieve data from memory slot 0
anyone can read passwords from memory slots.
vscode
Before storing the password in the blockchain, utilize encryption methods to secure it, and then proceed with the storage process.
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.