dick_nl Posted February 26, 2004 Posted February 26, 2004 Is there a unique, cpu depending, string or value in .NET 1.1.* that I can easily use for passwordgeneration!? regards, moi Quote
Moderators Robby Posted February 27, 2004 Moderators Posted February 27, 2004 Like a GUID? Quote Visit...Bassic Software
dick_nl Posted February 27, 2004 Author Posted February 27, 2004 something like a MAC Address which is very hard to change... maybe something like another hardware-address!? Quote
Jay1b Posted February 27, 2004 Posted February 27, 2004 I am sure there is a way of finding out a MAC address in .NET (i dont know how though), just use that. All modern PCs come with USB, and every USB port has its own MAC address as well. Quote
dick_nl Posted February 27, 2004 Author Posted February 27, 2004 Okay... that sounds good already.. but actually I'm looking for a magic number or string that is available on pc's as well as other (mobile) devices... so probably something in the Compact Framework... Is there any?! Quote
TechnoTone Posted February 27, 2004 Posted February 27, 2004 You could always create one the first time your program runs and save it to some obscure location in the registry. Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
dick_nl Posted February 27, 2004 Author Posted February 27, 2004 That's possible of course but using decompiling easy to figure out... I more like to use a fixed string/number of the cpu and make an pretty difficult calculation so reverse engineering is as good as impossible... Quote
TechnoTone Posted February 27, 2004 Posted February 27, 2004 How about HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductId? Not sure what it is exactly or whether it is unique to each machine. It might serve your purpose. Edit> Scrap that. It's not unique. I've just checked 2 PC's and their both the same. Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
Moderators Robby Posted February 27, 2004 Moderators Posted February 27, 2004 this may interest you http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemtypeclassgettypefromclsidtopic1.asp Quote Visit...Bassic Software
dick_nl Posted February 27, 2004 Author Posted February 27, 2004 Does nobody have experience with using an unique piece of data on a pc/device for protection purposes?! When doing class browsing through my assemblies I noticed that the defined fixed arrays weren't displayed when decompiling the assemblyfunction. i.e. from the following array only it's existence was shown but not the length of the array and values of the individual entries. A possibility to make an almost unhackable passwordgeneration... int[] myArray = {1, 3, 5, 7, 9, 11} Regards, me, myself and I Quote
*Experts* DiverDan Posted February 28, 2004 *Experts* Posted February 28, 2004 As a suggestion, I send the newly registered user a SystemID.exe file. The program has only two buttons, one with Email, the other with Phone. The program gets the CPU serial number of the computer then encrypts it. When the user presses the email button, the encrypted serial number along with their name, date, product version and distributor name are pasted into the email body, then emailed off. I then return an encrypted code to be entered into the program. At all time the displayed codes are encrypted and, if the program is hacked, the hackie :-) would still need the code generator program to generate a code for their computer. It sounds a bit involved, but it works very well. Hope that helps Dan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
dick_nl Posted February 28, 2004 Author Posted February 28, 2004 That was about what I wanted to do too! And for that it's most save to have an unique value/string (like the serial# of the cpu) that can't be changed by the users... But beside it's should be unique, I also want it to be possible to get that value with safe code only and if possible should be available on every device that runs the .NET Framework... Seems to be pretty hard to find something like that... Quote
*Experts* DiverDan Posted February 29, 2004 *Experts* Posted February 29, 2004 Drop me a PM and I'll explain it a bit more. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.