View Single Post
Old 03-31-2004, 07:43 PM   #1 (permalink)
FRNC
 
Newb Techie

Join Date: Mar 2004

Posts: 1

FRNC

Default A hashing algorithm

I'm a novice, not a programmer. I've come across a problem I need help with that a programmer would be the most likely person to be able to solve. Can someone please use the following procedure to "hash" the following number sequence:

545372491


Algorithm for hashing

1) Strip leading digit
2) Group remaining 8 digits into two groups of 4 digits
3) Shift first group one digit to the right, wrapping around
4) Shift second group two digits to the right, wrapping around
5) Represent resulting values in hexadecimal form
(For example 8419 would be represented as 1000010000011001)
6) XOR the two values giving a 4-digit hex result

What is meant by: 6) XOR the two values giving a 4-digit hex result????
FRNC is offline