A simple question about md5 hashing in php [Solved]
Posted: Fri Aug 12, 2011 10:38 am
Hi all. I'm a newbie in php. what i need to do is to do md5 hashing on some hex values. for example:
I wanna do an md5 hash of 0x14. the actual hash of that, is:
15f41a2e96bae341dde485bb0e78f485
but i can not reproduce that in php.
md5 (0x14); Doesnt work
even md5(chr(hexdec(14))); doesnt work. cause its not an actual character
I tried every possibility that i could think of. none of them gave me the right hash
How can i make this work? its really essential for me
Thanks in advance
Best Regards
David
I wanna do an md5 hash of 0x14. the actual hash of that, is:
15f41a2e96bae341dde485bb0e78f485
but i can not reproduce that in php.
md5 (0x14); Doesnt work
even md5(chr(hexdec(14))); doesnt work. cause its not an actual character
I tried every possibility that i could think of. none of them gave me the right hash
How can i make this work? its really essential for me
Thanks in advance
Best Regards
David