vb.net - Shorten a string containing data -
I am creating an application to present unique keys for each computer, this information is taken from the OS serial number and processor ID has gone.
Is there a way to 'reduce' the string? Perhaps by converting it to hex or something ...
The reason for this is: I have a VB6 section of code (http://www.planet-source-code.com/vb ... 48 9 26 and LNGIID = 1) and the output is only 13 digits long. I have a very long time but get the same information ...
BTW, I have posted the link above Wins the prize, but I have great difficulty in converting it to the net. Has it been changed by any chance, or is anyone aware of it? Or a tool that actually works?
Thanks
Edit Here is the full working link: It sounds as if you want 'hashing algorithm' or 'hash function', this is a common concept: Generally speaking You can write your function to take the string and return a palm number, but there is some appropriate code that uses the .NET framework:
Comments
Post a Comment