I am working on a small project and need your help. Here are the details:
I am looking for a encryption library/sdk/toolkit for a simple project, the library should have following requirements
I am really new to encryption libraries, kindly give your suggestion and I'll do background research on my own.
Also, can you suggest a good way to hide my key inside an EXE? This is an click-and-run application without any registration or installation.
Will decrypt key be hardcoded in your program, or supplied from eg. a license file?
If hardcoded, don't bother looking for any type of fancy encryption, all you can hope for is a (very thin!) layer of obfuscation - even a simple XOR scrambling would be no worse than AES.
That said, check out TomCrypt or Crypto++.
You could also opt for something really simple such as TEA. Or you could stick with simple XOR encryption and compress your executable; a nice property of single-byte XOR encryption is that the encrypted data will still be compressible :) (caveat emptor: exe compression sometimes triggers false positives in antivirus apps).
The thing to keep in mind is that "if it runs, it can be broken", so focus on diverting casual prying eyes and forget about securing against "really interested people" - it takes a lot of effort and knowledge to do anything remotely successful.
For "hiding" the decryption key, you can simply store the binary key (what the decryption algorithm itself uses) rather than a textual representation - or you could use a string of gibberish. Doesn't matter much, casual users won't be able to use the key anyway, and you can't hide it from determined people :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With