Will decrypt the key hard-coded in your program or delivered, for example. license file?
If you're hard-coded, don't worry about looking for any type of fantasy encryption, all you can hope for is a (very thin!) Obfuscation layer - even simple XOR scrambling will be no worse than AES.
However, TomCrypt or Crypto ++ .
EDIT
You can also choose something really simple, like TEA . Or you can stick with simple XOR encryption and compress your executable; A good feature of XOR single-byte encryption is that the encrypted data will still be compressible :) (caveat emptor: exe compression sometimes causes false positives in antivirus applications).
The thing to keep in mind is that “if it works, it can be broken”, so focus on distracting random prying eyes and forget about protecting yourself from “really interested people” - it takes a lot > of effort and knowledge to make anything remotely successful.
EDIT 2
To “hide” the decryption key, you can simply save the binary key (which is the decryption algorithm itself) rather than a textual representation, or you can use the gibberish string. It doesn’t matter, random users will not be able to use the key in any case, and you cannot hide it from certain people :)
snemarch
source share