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

Licensed classes and scripts using 64-bit encryption (more reliable) - MetaTrader 5 Library - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

This class loads the license file for licensing purposes by reading the 64-bit encrypted account data from the license file into the accounts array.

(The 256-bit encryption method I posted last time, failed to decrypt on some strings, hence why this method is more reliable)

This class is initialized with the filename and master key (m_hkey -> can be a key of your choice, it is hardcoded here) and if the file needs to be saved in a public folder.

Important methods:

m_Write(String m_Acc = "", String m_Broker = "") - Add new account to license file...

(We used it to make a simple script to add new accounts to the license file. Directly in Mt5/Mt4)

Finally there are two public functions that can be used to encrypt and decrypt strings using 256-bit encryption... (if the user needs it)

The included sample script file creates a license file using the above classes.

This script will append the new account license to the specified file...


Attachment download

📎 license.mqh (9.53 KB)

📎 license_create.mq5 (1.97 KB)

Source: MQL5 #34055

Verification code Refresh