添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
B4X is a set of simple and powerful cross platform RAD tools:
  • B4A (free) - Android development
  • B4J (free) - Desktop and Server development
  • B4i - iOS development
  • B4R (free) - Arduino, ESP8266 and ESP32 development
  • All developers, with any skill level, are welcome to join the B4X community .

    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…