Logo
Error 404: Sleep not found.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Loose comparison Memes

Posts tagged with Loose comparison

PHP's Accidental Hash Collision Feature

php Programming Debugging Security
1 year ago 378.3K views 0 shares
PHP's Accidental Hash Collision Feature
Behold, PHP's infamous type juggling strikes again! The meme shows how md5('240610708') == md5('QNKCDZO') evaluates to true despite being completely different strings. What's happening? Both MD5 hashes begin with '0e' followed by digits, which PHP helpfully interprets as scientific notation (0×10^something). And since 0 raised to any power equals 0, PHP thinks both hashes equal zero. It's basically comparing 0==0. This is why strict comparison ( === ) exists in PHP. Without it, you might accidentally authenticate someone with the wrong password! Security nightmare fuel for any developer who values their sanity.

Today's picks

“Don’t Quit Your Daydream” Motivational Sun Mug – 11 oz Ceramic Coffee Cup with Cute Sunshine Design – Positive Gift for Dreamers, Artists & Entrepreneurs – Dishwasher & Microwave Safe

“Don’t Quit Your Daydream” Motivational Sun Mug – 11 oz Ceramic Coffee Cup with Cute Sunshine Design – Positive Gift for Dreamers, Artists & Entrepreneurs – Dishwasher & Microwave Safe

Affiliate
$9.99
Made Some Homework For My Reverse Engineering Lecture

Made Some Homework For My Reverse Engineering Lecture

Security
432.1K views 7 months ago
Declaring Issues

Declaring Issues

Programming
93.1K views 5 years ago