Licensed classes and scripts using 64-bit encryption (more reliable) - MetaTrader 5 Library - MT4/MT5 Resources
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
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •