Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

MD5 Hash - MetaTrader 5 Library | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 5 reads | 0 comments |

The 128-byte algorithm for hashing was developed by Professor Ronald Lynn Rivest from the Massachusetts Institute of Technology (MIT) in 1991.

Usage example

 #include CMD5Hash md5; string string = "Now it's easy to control MQL5 data integrity!" ; UcharByte []; String to char array (string, bytes, 0 , string length (str)); // Transfer string to byte array // without last \0
Print (md5.Hash(bytes, array size (bytes))); // Print MD5 hash value
 ----------------------------------------------------------------------------------------
result:
c25688ecc77d8141b2f85320809e2a35

As an array we can pass the data file to read from read array file etc.

will be useful


Attachment download

📎 md5hash.mqh (8.04 KB)

Source: MQL5 #1553

Verification code Refresh