php-the-right-way icon indicating copy to clipboard operation
php-the-right-way copied to clipboard

Worth mentioning for passwords

Open github-scx opened this issue 2 years ago • 0 comments

I think it would be worth mentioning the #[SensitiveParameter] they added. It will make it so that the variable doesn't get thrown in stack dumps, or log files internally to PHP. This is in 8.2, and I think it makes it a little more secure.

public function login(string $email, #[SensitiveParameter] string $password) { echo 'login'; }

github-scx avatar Aug 18 '23 17:08 github-scx