Manual example - Algo 2123

dommac2000

Inactive User
Joined
May 28, 2005
Messages
254
Reaction score
4
Manual example - Algo 2123

23: 2123
24: 2431
25: 205936148
26: 2341
27: 2676

First Digit of Algo is '2' (Algo digit 2 - order value)

[Self lookup on order]

2431 -> 1234
1234 -> 4132 - 4132 Result 1

--------------------------------------------------

Second Digit of algo is '1' (Algo digit 1 - 10 digit lookup)
205936148 - 10th digit is 7 (all digits must be unique)

2059361487 -> 0123456789
-----------------------
0123456789 -> 1604725983
0123456789 -> 1604725983
0123456789 -> 1604725983
0123456789 -> 1604725983 - Result 2

--------------------------------------------------

Third Digit of algo is '2' (Algo digit 2 - order value)

[Self lookup on order]

2341 -> 1234
-----------------
1234 -> 4123 - Result 3

As there is a previous order we order Result 3 by Result 1
4123 order by (4132) = 3421 - Result 4

--------------------------------------------------

Fourth Digit of algo is '3' (Algo digit 3 - right rotate table)
Order shift value by current order (Result 4)
2676 order by (3421) = 7662 - Result 5

Right rotate table by Result 5

0123456789 - 0123456789
---------------------------
1604725983 - 4725983160 - Right rotate line by digit 1 of result 5 (7)
1604725983 - 7259831604 - Right rotate line by digit 2 of result 5 (6)
1604725983 - 7259831604 - Right rotate line by digit 3 of result 5 (6)
1604725983 - 8316047259 - Right rotate line by digit 4 of result 5 (2) - Result 6

--------------------------------------------------

Calculate pin
Extract the 4 significant digits of the viewer id ??xxxx?
Order the 4 digits (xxxx) by Result 4 (3421)
Lookup the ordered digits in the final table Result 6
 
dommac2000 said:
Manual example - Algo 2123

As there is a previous order we order Result 3 by Result 1
4123 order by (4132) = 3421 - Result 4

Hi Dommac

I can't see how this bit is done. How do you get 3421 from these 2 numbers?

Reordering 4123 by 4132

4132> 1324... even if it is the other way around it would be 1324
4123

I MUST be missing something, but I just can't see it!!!
 
4123 order by (4132) = 3421 - Result 4

The Swerv said:
Hi Dommac

I can't see how this bit is done. How do you get 3421 from these 2 numbers?

Reordering 4123 by 4132

4132> 1324... even if it is the other way around it would be 1324
4123

I MUST be missing something, but I just can't see it!!!

4123 ordered by (4132) means the fourth digit then first digit then third digit and finally second digit.

Fourth digit of 4123: 3
First digit of 4123: 4
Third digit of 4123: 2
Second digit of 4123: 1

Result: 3421
 
dommac2000 said:
4123 ordered by (4132) means the fourth digit then first digit then third digit and finally second digit.

Fourth digit of 4123: 3
First digit of 4123: 4
Third digit of 4123: 2
Second digit of 4123: 1

Result: 3421


Ah I see. May have to look over some of my old spreadsheets now, think I may have got this double 2 code a bit wrong........oooopsss.

Many thanks
 
Back
Top