indrora, boot of journalism on Nostr: npub15zp7p…m8ghg Pick any `my_pwd` with an md5 that begins with "00e8" like ...
npub15zp7p7pghhayc5q64s2lvfk46fjgr2r9gqylq924plnsnwdvtr2q6m8ghg (npub15zp…8ghg) Pick any `my_pwd` with an md5 that begins with "00e8" like 3112336944hello
PHPs type system is made of jelly rolls and considers a string beginning with "0" in an equality comparison to be an integer, so it turns "00e8xxxxxx" into 00e8, or "octal, 0 * 8^8xxxxx", which is still zero.
This happens on both sides and guess what? According to all known laws of aviation, zero is equal to zero. Who'da thunk?
There are caveats depending on versions of PHP though: https://github.com/spaze/hashes/blob/master/plaintext.md
PHPs type system is made of jelly rolls and considers a string beginning with "0" in an equality comparison to be an integer, so it turns "00e8xxxxxx" into 00e8, or "octal, 0 * 8^8xxxxx", which is still zero.
This happens on both sides and guess what? According to all known laws of aviation, zero is equal to zero. Who'da thunk?
There are caveats depending on versions of PHP though: https://github.com/spaze/hashes/blob/master/plaintext.md