|
-
December 31st, 2009, 03:05 PM
#1
requesting password creation advice
Hi
I'm trying to make the following solution.
(1) the person would email me their unique Hardware ID.
(2) I would return a matching unlock key, which the person would put in a text file in their directory. The app would pick up the unlock key and go through some simple algorithm to determine if it is complementary to the hardware ID.
I was wondering if someone could give some advice.
(note:
i don't want a for-pat commercial application. I already spent about 300 dollars on EXECryptor and received absolutely no tech support. EXECryptor was a complete waste of money.
I also realize such a solution would be crackable but I just want something very simple. I'm just curious about hearing some ideas. )
I was also wondering if there was some simple open source library I could put in to do this.
I realize also on the simplest level I could make my unlocking key simply every 3 characters of the hardware id but some could easily pick this up.
Thanks
Stephen
-
December 31st, 2009, 03:18 PM
#2
Re: requesting password creation advice
Use a hashing algorithm. A cryptographically strong hash like SHA should do fine.
-
December 31st, 2009, 05:17 PM
#3
Re: requesting password creation advice
is there a nice code sample some place where i can copy and paste?
I don't have a cs degree. i'm actually in another field now - medsciences.
-
December 31st, 2009, 06:02 PM
#4
Re: requesting password creation advice
There's some impelmentation information at the bottom here:
http://en.wikipedia.org/wiki/SHA_hash_functions
Visual C++ 2003 and Windows 2K and later have a built-in crypto API (at least in the US versions).
-
January 7th, 2010, 06:32 PM
#5
Re: requesting password creation advice
by any chance, is there some implementation of this code somewhere on the net ?
maybe I have been away from programming for a while -
i see the pseudocode on wiki but just to make sure I get it right the first time, is there some open source implementation already somewhere ?
thanks
-
January 7th, 2010, 08:29 PM
#6
Re: requesting password creation advice
Crypto++ should have all you need and much much more.
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
-
January 7th, 2010, 09:29 PM
#7
Re: requesting password creation advice
 Originally Posted by stephenprogrammer07
by any chance, is there some implementation of this code somewhere on the net ?
maybe I have been away from programming for a while -
i see the pseudocode on wiki but just to make sure I get it right the first time, is there some open source implementation already somewhere ?
thanks
What compiler/platform?
-
January 7th, 2010, 11:15 PM
#8
Re: requesting password creation advice
-
January 8th, 2010, 09:44 AM
#9
Re: requesting password creation advice
That's the compiler, not how about the platform?
-
January 8th, 2010, 04:49 PM
#10
Re: requesting password creation advice
I guess DevC++ is only for Windows.
-
January 8th, 2010, 09:57 PM
#11
Re: requesting password creation advice
 Originally Posted by stephenprogrammer07
dev c++
Dev-C++ is an IDE (Integrated Development Environment) -- it is not a platform and it is not a compiler. The compiler that Dev-C++ uses under the hood is gcc 3.x (look at the compiler messages -- you should see gcc in there). The platform for this version of gcc is Windows.
BTW, Dev-C++ has not been updated in several years, and is basically abandoned. You should think about going to an IDE that is currently updated that supports gcc, and one that comes to mind immediately is CodeBlocks.
Regards,
Paul McKenzie
Last edited by Paul McKenzie; January 8th, 2010 at 09:59 PM.
-
January 10th, 2010, 10:21 AM
#12
Re: requesting password creation advice
It looks like some activation scheme...
Well, consider using digital signatures.
Have a look at your hardware ids. You may sign them separately to allow user to change some hardware components.
I.e. the user sends you his hardware ids, you sign them and send signatures back to the user. The program checks signatures and if some (Decide yourself how many) matches it considers itself activated.
Have a look at: http://en.wikipedia.org/wiki/RSA#Signing_messages
It seems me that all necessary stuff is already available in CryptAPI.
Don't blame EXECryptor. It's just used to prevent debugging. But if you are tending to protect something casual UPX is just enough to stop a teenager with SoftICE. (Any program may be disassembled and cracked, it's just a question of time if the program is popular.)
But usage of digital signatures prevents creation of a real keygen.
Last edited by andrey_zh; January 10th, 2010 at 10:27 AM.
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
|