Home > Back-end >  Delphi Base64 and Md5 and Java to achieve the same results?
Delphi Base64 and Md5 and Java to achieve the same results?

Time:10-08

The string in the Java MD5 first and then Base64

How to achieve the same results in Delphi? How different test

The String key="TEST";
The String content="& lt; Order> ";
String result=new String (Base64. EncodeBase64 (DigestUtils. Md5 ((content + md5key). GetBytes (" utf-8 "))), "utf-8");

CodePudding user response:

The results of the Java process?

CodePudding user response:

perhaps you didn't handle UTF8 encoding problem, your Delphi code?

CodePudding user response:

This problem I also met a year ago,

CodePudding user response:

This problem, I also met someone to solve, or someone found the reason?

CodePudding user response:

The problem unless you write a, the existing version can't be the same, the ASP PHP is just the same

CodePudding user response:

I've met,,
Later found that can be invoked using Delphi JS code,
  • Related