So you get an address and change it to some serial number. If that gets replaced it's probably because the computer was replaced.Īlso I don't understand the logic behind your purpose for doing this. The second picture in the image below shows the BIOS hardware I.D. Note that my wireless NICs MAC address is shown while my 10/100 base t ethernet NIC is not since Which of course can be replaced when necessary which changes the MAC address. The first picture in the image below just shows the ones for network interfaces. If you want to avoid numbers and letters that appear similar (O and zero,one and L, B and 8), just remove them from the string "AlphaNum" but be sure that "AlphaNum" is more than 256 characters.įirst there are a number of MAC addresses on a machine normally. Secret Key = BORK-AR89-O4FB-8O0D-9DWG-70SS-YEUH-NI5RĪs with most hash functions, a small change yields a large change Secret Key = AEB7-7A2T-BD3P-HMZG-Z9N1-DSC3-BJAJ-7WGD If charsProcessed Mod 4 = 0 And ndx < RawHash.Length - 2 Then TheKey &= AlphaNum.Substring(Integer.Parse(RawHash.Substring(ndx, 2), ), 1) "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" & _ĭim Hash() As Byte = sha.ComputeHash(ae.GetBytes(Txt)) Requires "Imports " in the usual spot.įunction MakeTheKey(ByVal Txt As String) As Stringĭim AlphaNum As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" & _ Once you get the MAC Address, or MainBoard serial, or whatever identifying String, something like this will generate a unique serial number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |