Terrible Auth: The Digital Doorman Who Always Says Yes

Terrible Auth: The Digital Doorman Who Always Says Yes
security-memes, authentication-memes, cpp-memes, bad-code-memes, if-true-memes | ProgrammerHumor.io

The first part of this authentication function is actually doing its job—checking if the password matches. But then comes the security masterpiece: if (true == true). Congratulations, you've created the digital equivalent of a bouncer who checks your ID and then lets you in anyway because "yep, gravity still works!" This function will authenticate literally anyone who gets past the first check... or fails it and just keeps trying. Security experts hate this one weird trick!

More Like This