Thread: Need a simple question answered

  1. #1
    Registered User
    Join Date
    Sep 2009

    Need a simple question answered

    My son has asked me to post a question and I'm not really sure if this is the right place as this is all way over my head. If I have posted in the wrong place I am deeply sorry and ask that you all please forgive me. The question my son needs answered is this....

    "If I put an encryption key inside of a dll will it be safe? Is there any way for anyone to reverse engineer the dll to acquire the encryption key? If there is, then what would be the safest way to hard code an encryption key into a program without it being acquired?"

    I hope someone here can help us and I really thank you for your time.

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Yes, as the key is contained in the dll it is possible to extract it with a simple hex editor or more likely, using an automated application.

    The simple answer is that you cannot hard code an encryption key into a dll or application in such a manner that it cannot be extracted. You can take steps to obfuscate it, but ultimately anyone that has access to the application can reverse it. Hardware based encryption is really the only feasible option to keep keys secure.
    Last edited by abachler; 09-17-2009 at 09:30 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question regarding variables
    By Flakster in forum C++ Programming
    Replies: 10
    Last Post: 05-18-2005, 08:10 PM
  2. Simple class question
    By 99atlantic in forum C++ Programming
    Replies: 6
    Last Post: 04-20-2005, 11:41 PM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 09:46 AM
  4. simple question.
    By InvariantLoop in forum Windows Programming
    Replies: 4
    Last Post: 01-31-2005, 12:15 PM
  5. simple fgets question
    By theweirdo in forum C Programming
    Replies: 7
    Last Post: 01-27-2002, 06:58 PM