|
-
Aug 12th, 2000, 06:07 PM
#1
Thread Starter
Member
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.
-
Aug 12th, 2000, 06:11 PM
#2
Fanatic Member
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]
-
Aug 12th, 2000, 06:12 PM
#3
Fanatic Member
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]
-
Aug 12th, 2000, 06:40 PM
#4
For this program, the author claims you can hide strings or anything in the exe itself. Here is the program: Active Self-Extract
-
Aug 12th, 2000, 07:06 PM
#5
Thread Starter
Member
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.
-
Aug 12th, 2000, 07:24 PM
#6
Frenzied Member
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.
-
Aug 12th, 2000, 07:25 PM
#7
Fanatic Member
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]
-
Aug 12th, 2000, 07:31 PM
#8
Thread Starter
Member
Sam Finch, that's what I meant. So what should I do to hide the Key?
-
Aug 12th, 2000, 07:39 PM
#9
Frenzied Member
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.
-
Aug 12th, 2000, 07:48 PM
#10
Another appraoch is, like you mentioned, hiding it in the Registry. Hide it among the common serial numbers such as {4JGF984NG-GF0843HGNF-45T0895NG-394Y3209NV}.
-
Aug 12th, 2000, 11:30 PM
#11
Thread Starter
Member
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.
-
Aug 13th, 2000, 05:23 AM
#12
perhaps yo could generate a registration code from the user's PC hard disk Serial number, this will change even between formatting episodes!
-
Aug 13th, 2000, 09:13 AM
#13
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\
-
Aug 13th, 2000, 12:41 PM
#14
Thread Starter
Member
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]
-
Aug 13th, 2000, 12:50 PM
#15
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|