Do you have steps on how to add the script to my MQL5 EA?
The 256bit encryption is a bit erratic the 64bit one is better...
but you can use it something like this
CLicence *CEALicence;
CEALicence = new CLicence(FileStr,KeyStr, true); // true if file must be placed in common folder...
if(CEALicence.m_Write(AccountStr, BrokerStr, expiry))
{
MessageBox("Licence Created for "+AccountStr+" "+BrokerStr,"Licence Created", MB_OK);
};
delete CEALicence;
}
Jason Kisogloo:
The 256bit encryption is a bit erratic the 64bit one is better...
but you can use it something like this
CLicence *CEALicence;
CEALicence = new CLicence(FileStr,KeyStr, true); // true if file must be placed in common folder...
if(CEALicence.m_Write(AccountStr, BrokerStr, expiry))
{
MessageBox("Licence Created for "+AccountStr+" "+BrokerStr,"Licence Created", MB_OK);
};
delete CEALicence;
}
Thank you. I'm not too sure if I added it incorrectly but it returns an error on the script.
This kind of thing is trivial to break. I recommend to never use such false protection.
hi there,
I use this one:
https://www.mql5.com/en/forum/365444
And it works for me contrary to Alain's recommendation, but Alain is yet to supply a better solution...
![Libraries: Licensing class and script with 64bit Encryption (more Reliable) Libraries: Licensing class and script with 64bit Encryption (more Reliable)](https://c.mql5.com/36/50/libraries-licensing-class-and-script.jpg)
- 2021.03.22
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Licensing class and script with 256bit Encryption:
This is a Script and Class for creating, evaluating and adding accounts to an encrypted license file for licensing an MQL EA or Indicator.
Author: Jason Kisogloo