Java md5, the PHP way

前端 未结 5 1115
执念已碎
执念已碎 2020-12-14 12:49

I have been working on this for hours, but I can\'t get it to work.

Basically I am developing a REST client in Java for a REST server in PHP. Both the client and the

5条回答
  •  孤街浪徒
    2020-12-14 13:40

    You are outputting the raw md5 output, which is just a bunch of bytes. You would get the same result in php if you said md5("some string", true).

    You need to convert the bytes to ascii characters instead.

提交回复
热议问题