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 256-bit encryption - Scripts for MetaTrader 5 - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

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

This class is initialized with the file name, master key, and whether the file needs to be saved in a public folder.

Important methods:

m_Write(String m_Acc = "", String m_Server = "") - Adds a new account to the license file...

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

m_LicenceFound(String m_Acc="", String m_Server="") - Checks the array of accounts in the license file to see if there is a match and returns a Boolean value based on it.

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

📎 clicence.mqh (9.18 KB)

📎 license_create.mq5 (1.95 KB)

Source: MQL5 #33774

Verification code Refresh