| |

VerySource

 Forgot password?
 Register
Search
View: 754|Reply: 2

How is the MD5 signature value of the indy component different from C #?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-3 21:00:01
| Show all posts |Read mode
var
  MyMD5: TIdHashMessageDigest5;
  Digest: T4x4LongWordRecord; // T4x4LongWordRecord;
begin
  MyMD5: = TIdHashMessageDigest5.Create;

  Digest: = MyMD5.HashValue (s);
  result: = MyMD5.AsHex (Digest); // Display MD5 signature results with a length of 32 characters
  Result: = delUnderLine (Result); // Remove '-' and convert characters to lower case
end;
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-18 23:15:01
| Show all posts
It must be the same, I have tested this time
result: = MyMD5.AsHex (Digest); // Display the MD5 signature result of 32 characters

result how could you say-these symbols

He can only be a 16-digit number between 0-F
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-8-13 13:45:01
| Show all posts
I chose the MD5 signature after DES encryption, but it was not converted to UTF-8. The default character set of DELPHI is GB-2312
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list