login about faq


if i buy the license and enter the activation code in the program, anybody can decompile the exe and read the license key. even if the code gets obfuscated, strings dont get obfuscated. how can i prevent that out of 1000 users one steals my registration code and uses the chilkat library with my license without my knowledge?


asked Aug 06 '13 at 11:00

sharkyenergy's gravatar image


You could store it encrypted in a table or ini file, and process it at runtime.


answered Aug 06 '13 at 15:17

cdlvj130's gravatar image


sounds good! any tipps or decent tutorial on how to do it? thanks!

(Aug 06 '13 at 15:28) sharkyenergy

I use the chilkat RSA module.

But you would have to have the RSA key in your program to unlock that component.

Another way is to define a string, and store the key backward, with every third character being the key.

key is IBM_FG,



make key 1 letter off JCN_GH


answered Aug 06 '13 at 16:15

cdlvj130's gravatar image


I chose to obfuscate the unlock codes in a similar fashion, but that still leaves a theoretical risk that someone manages to reverse engineer the logic to reconstruct the real unlock code. On the other hand it is not that critical if anyone would gain access to an unlock code. After all they can only use it to develop applications with Chilkat components and not gain access to any critical information.

(Aug 08 '13 at 04:37) roan98dk
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Aug 06 '13 at 11:00

Seen: 3,258 times

Last updated: Aug 08 '13 at 04:37

powered by OSQA