X || 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
||----------------------------------------------------------------
0 || 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
--||---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 || 1 | 0 | 3 | 2 | 5 | 4 | 7 | 6 | 9 | 8 | B | A | D | C | F |
--||---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 || 2 | 3 | 0 | 1 | 6 | 7 | 4 | 5 | A | B | 8 | 9 | E | F |
--||---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 || 3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 | B | A | 9 | 8 | F |
--||---|---|---|---|---|---|---|---|---|---|---|---|---|
4 || 4 | 5 | 6 | 7 | 0 | 1 | 2 | 3 | C | D | E | F |
--||---|---|---|---|---|---|---|---|---|---|---|---|
5 || 5 | 4 | 7 | 6 | 1 | 0 | 3 | 2 | D | C | F |
--||---|---|---|---|---|---|---|---|---|---|---|
6 || 6 | 7 | 4 | 5 | 2 | 3 | 0 | 1 | E | F |
--||---|---|---|---|---|---|---|---|---|---|
7 || 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | F |
--||---|---|---|---|---|---|---|---|---|
8 || 8 | 9 | A | B | C | D | E | F |
--||---|---|---|---|---|---|---|---|
9 || 9 | 8 | B | A | D | C | F |
--||---|---|---|---|---|---|---|
A || A | B | 8 | 9 | E | F |
--||---|---|---|---|---|---|
B || B | A | 9 | 8 | F |
--||---|---|---|---|---|
C || C | D | E | F |
--||---|---|---|---|
D || D | C | F |
--||---|---|---|
E || E | F |
--||---|---|
F || F |
--||---|
How to Encode:
Step 1) Memorize one account number or other long number, to be used as "code" number.
Step 2) Write down account number you want to encode.
Step 3) Write down "code" directly below account number, keeping the digits inline.
If account number is longer than code number, repeat code till both numbers are the same length. If account number is shorter than code, ignore code numbers past end of account number.
Step 4) Take the first digit in your account number and first digit in the code, use these 2 numbers with the chart to find encoded version of that digit.
Step 5) Repeat till all digits of account number are encoded.
Note: this chart, and encode/decode method, was designed for numbers. The letters in the chart may or may not be needed in the encode/decode process. You can the letters A through F if you wish. You can also use the letters A through F in your "code" number.
Also note the chart is symmetrical, you can put the account digit and code digit from step 4 in either the matching column or row.
Example:
Account number: 583296
Code number: 2468
583296
246824
------
7C5AB2
Encoded Account number: 7C5AB2
How to Decode:
Step 1) Remember the account number or other long number, used as "code" number to encode.
Step 2) Write down encoded account number you want to decode.
Step 3) Write down "code" directly below encoded account number, keeping the digits inline.
If encoded account number is longer than code number, repeat code till both numbers are the same length. If encoded account number is shorter than code, ignore code numbers past end of account number.
Step 4) Take the first digit in your encoded account number and first digit in the code, use these 2 numbers with the chart to find decoded version of that digit.
Step 5) Repeat till all digits of account number are encoded.
Example:
Encoded Account number: 7C5AB2
Code number 2468
7C5AB2
246824
------
583296
Decoded account number: 583296
Notice that the encoded number may have letters in them. Once the number is decoded there should be no letters if there weren't any in the original account number, unless you did something wrong.
If you really want to encode text as well, use the chart below to sbstitut letters for numbers then encode the numbers be sure and use 01 for A, 02 for B ... other wise you won't know if 12 is AB or L.
00000000011111111112222222
12345678901234567890123456
ABCDEFGHIJKLMNOPQRSTUVWXYZ