dommac2000
Inactive User
- Joined
- May 28, 2005
- Messages
- 254
- Reaction score
- 4
Manual example - Algo 1321
21: 0
22: 0
23: 1321
24: 170384592
25: 6646
26: 2143
27: 745938106
First Digit of algo is '1' (Algo digit 1 - 10 digit lookup)
170384592 - 10th digit is 6 (all digits must be unique)
1703845926 -> 0123456789
-----------------------
0123456789 -> 2083569147
0123456789 -> 2083569147
0123456789 -> 2083569147
0123456789 -> 2083569147 - Result 1
--------------------------------------------------
Second Digit of algo is '3' (Algo digit 3 - right rotate table)
Order shift value by current order - no current order
Right rotate table
0123456789 - 0123456789
---------------------------
2083569147 - 5691472083 - Right rotate line by digit 1 of order (6)
2083569147 - 5691472083 - Right rotate line by digit 2 of order (6)
2083569147 - 9147208356 - Right rotate line by digit 3 of order (4)
2083569147 - 5691472083 - Right rotate line by digit 4 of order (6) - Result 2
--------------------------------------------------
Third Digit of Algo is '2' (Algo digit 2 - order value)
[Self lookup on order]
2143 -> 1234
1234 -> 2143 - 2143 Result 3
--------------------------------------------------
Fourth Digit of algo is '1' (Algo digit 1 - 10 digit lookup)
745938106 - 10th digit is 2 (all digits must be unique)
7459381062 -> 0123456789
-----------------------
5691472083 -> 0234698571
5691472083 -> 0234698571
9147208356 -> 3862145907
5691472083 -> 0234698571 - Result 4
--------------------------------------------------
Calculate pin
Extract the 4 significant digits of the viewer id ??xxxx?
Order the 4 digits (xxxx) by Result 3 (2143)
Lookup the ordered digits in the final table Result 4
21: 0
22: 0
23: 1321
24: 170384592
25: 6646
26: 2143
27: 745938106
First Digit of algo is '1' (Algo digit 1 - 10 digit lookup)
170384592 - 10th digit is 6 (all digits must be unique)
1703845926 -> 0123456789
-----------------------
0123456789 -> 2083569147
0123456789 -> 2083569147
0123456789 -> 2083569147
0123456789 -> 2083569147 - Result 1
--------------------------------------------------
Second Digit of algo is '3' (Algo digit 3 - right rotate table)
Order shift value by current order - no current order
Right rotate table
0123456789 - 0123456789
---------------------------
2083569147 - 5691472083 - Right rotate line by digit 1 of order (6)
2083569147 - 5691472083 - Right rotate line by digit 2 of order (6)
2083569147 - 9147208356 - Right rotate line by digit 3 of order (4)
2083569147 - 5691472083 - Right rotate line by digit 4 of order (6) - Result 2
--------------------------------------------------
Third Digit of Algo is '2' (Algo digit 2 - order value)
[Self lookup on order]
2143 -> 1234
1234 -> 2143 - 2143 Result 3
--------------------------------------------------
Fourth Digit of algo is '1' (Algo digit 1 - 10 digit lookup)
745938106 - 10th digit is 2 (all digits must be unique)
7459381062 -> 0123456789
-----------------------
5691472083 -> 0234698571
5691472083 -> 0234698571
9147208356 -> 3862145907
5691472083 -> 0234698571 - Result 4
--------------------------------------------------
Calculate pin
Extract the 4 significant digits of the viewer id ??xxxx?
Order the 4 digits (xxxx) by Result 3 (2143)
Lookup the ordered digits in the final table Result 4