(Ubuntu):
Code: Select all
echo -n "william" | openssl dgst -md5
(Purebasic XP):
Code: Select all
me$="william"
Debug MD5Fingerprint(@me$, Len(me$))
Both are the same. However, in Linux, if you add the binary option you get something almost the same. Check the first four characters, they are swapped around, the hash is almost the same all the way through, but not quite. What exactly is the -binary option doing and how can I replicate it in Purebasic please? (Is it called 'raw md5'?)
(Ubuntu):
Code: Select all
echo -n "william" | openssl dgst -md5 -binary | hexdump