Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Securing symmetric key

In my project (windows desktop application) I use symmetric key in order to encrypt/decrypt some configurations that need to be protected. The key is hardcoded in my code (C++).

  1. What are the risks that my key will be exposed by reverse engineering ? (the customers will receive the compiled DLL only)
  2. Is there a way for better security for managing the key?
  3. Are there open source or commercial products which I can use
like image 668
Denisdillo Avatar asked Mar 21 '26 12:03

Denisdillo


1 Answers

Windows provides a key storage mechanism as part of the Crypto API. This would only be useful for you if you have your code generate a unique random key for each user. If you are using a single key for installations for all users, it will obviously have to be in your code (or be derived from constants that are in your code), and thus couldn't really be secure.

like image 175
Richard Schwartz Avatar answered Mar 24 '26 11:03

Richard Schwartz