Results 1 to 15 of 15

Thread: Where to hide the key

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    37
    Ok, I got a 'good' algorithm for encryption. But where is the good place to store the encrytion KEY?

    I have 3 ideas, but they seems not so good, anyone have other idea?

    If store it with the encrypt data or in a file, so whoever get the data or file can decrtypt it. this is not safe.
    If store it in Windows Registery, than user will lost the key if he/she reinstall Windows.
    If use the user's password as the key, it need to re-en/decrypt all the data every time user change password.

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    The registry is the most common. If they re-install windows, they re-install your program, thus the key gets put back in the Registry, right? How often do you re-install windows, anyway!

    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    or you could hard code it in, unless it will change
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  4. #4
    Guest
    For this program, the author claims you can hide strings or anything in the exe itself. Here is the program: Active Self-Extract

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    37
    gwdash, hard code is what I always want to do. But if other people get my program and the data file, they can also decrypt it as well.

  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    well should you really include the key anywhere, the Idea of encryption is to restrict access of the file to a select group of people, why don't you just tell them the key?

    If you have a house you don't leave the key under the doormat or in the door because then what is the point of having a key, only people who have access to the house are given the key.

  7. #7
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    i see what you mean now, i'm not an expert, but i understand your point, Somewhat
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  8. #8

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    37
    Sam Finch, that's what I meant. So what should I do to hide the Key?

  9. #9
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I meant actually tell them, using your voice, or send them a letter or something, no hacker is going to be able to find the key if it's just stored in their head, you can change the key as much as you like by telling them again or sending another letter, or even an email, but that's slightly less secure. you don't have to change the key every message, even once a month is pretty failsafe.

  10. #10
    Guest
    Another appraoch is, like you mentioned, hiding it in the Registry. Hide it among the common serial numbers such as {4JGF984NG-GF0843HGNF-45T0895NG-394Y3209NV}.

  11. #11

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    37
    This is a great idea. Use the software serialno as key! I just need to generate unique serial number for each copy of my applications, so nobody else can crack the data without the orginal serialno.

  12. #12
    Guest
    perhaps yo could generate a registration code from the user's PC hard disk Serial number, this will change even between formatting episodes!

  13. #13
    Guest
    There is a lot of OS Info (Serial number, ProductID, Username, Organization etc.) found in the following registry path.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\


  14. #14

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    37
    Alright! But how to access this registry from VB6?

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\

    Is it the same for WindowsNT,2000 and 9x?

    [Edited by bbUFO on 08-13-2000 at 01:44 PM]

  15. #15
    Lively Member
    Join Date
    Apr 2000
    Posts
    110

    Question Try this

    Instead of storing one registry entry, store lots all around the registy, and do a check to see if any one of them has been tampered with. If it has, then the program doesn't run. This would make it a lot harder for a user to search the regsitry and find the single encryption key in the registry.

    Just an idea.

    Later

    REM

    "Innovate, don't immitate."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width