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
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