1 person found this helpful
Use an encryption algo like AES or whatever.
Or a simpler solution c# - Help me with XOR encryption - Stack Overflow.
Based on this example :
- scramble your License Key and put it into a variable/constant (Compiletime) or Method.
- put your encryption key into a variable/constant. (Compiletime)
- decrypt your DocMgr key before usage. (Runtime)
I think the license conditions of the DocumentMgr API are fulfilled.
But always possible just take dump memory and read the key from there?
If you did it right, it's not easy. You have to intercept the call to GetApplication(sLicenseKey), Then the cleartext key is somewhere in memory.
- in your dll/exe the License Key is scrambled.
If you are using .NET or Java, your source could be decompiled.
But, to be honest, with the above methods can only increase the cost of recovering the key.