I'm a newbie in php. what i need to do is to do md5 hashing on some hex values. For example, I want to do an md5 hash of 0x14. the actual hash of that, is:
15f41a2e96bae341dde485bb0e78f485
but i can not reproduce that in PHP.
md5 (0x14);
Doesn't work, even
md5(chr(hexdec(14)));
doesn't work. cause its not an actual character
I tried every possibility that i could think of, searched countless hours on the Internet, still nothing. How can i make this work?
php> echo md5(chr(0x14))
15f41a2e96bae341dde485bb0e78f485
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With