Solved

Encrypt or hash data giving a fixed digit numeric result?

Posted on 2002-05-15
2
184 Views
Last Modified: 2008-03-03
Im looking for a way to take a string and hash it to a unique number of a fixed size.  ie 6 digits.

I want to use this as key and then rehash the number 1 more time and produce another 6 digit number as the unlock code.  

the original string will be either variable in length or I can fix it to to a set number of characters but variable would be best.

the results of both hashes must be numeric and fixed length.

thanks for the help
0
Comment
Question by:ocsscott
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
ID: 7011280
A CRC check may be enough to do this for you http://www.freevbcode.com/ShowCode.Asp?ID=2755 is an example of this, you could easily convert the output to a long rather than a hex string and use this as your number, it will commonly be 10 digits but you could use perhaps the last 6 if required.
0
 

Author Comment

by:ocsscott
ID: 7012272
perfect, that will do the trick

scott
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now