Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Encrypt or hash data giving a fixed digit numeric result?

Posted on 2002-05-15
2
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 800 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

688 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