You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Android Question
Mismatch in MD5 result when comparing with PHP
And it is giving me problem with encryption and decryption, something encrypted in B4X is not being decrypted in PHP because the keys are different.
Why is this happening, and how to make both the outputs same?
Ok, I found the solution.
The hash key generated by B4X and PHP is different because, B4X message digest is always in raw binary data, however the md5() function in php gives out data in lowercase hexits.
That is why it is generating different hash functions.
The solution is to use hash() which also gives out raw data:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…