Post by [ℙ][✓] P1kachu on Oct 27, 2015 20:07:25 GMT -5
In this tutorial I will show you how to read and write in Hexadecimal language.
First you must know how to convert numbers to Hex.
Look at this pattern closely:
1 = 1
2 = 2
...
8 = 8
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
16 = 10
17 = 11
18 = 12
Have you noticed anything?
In hex, the number next to 9 goes to A, then continues up to F then becomes 10.
It's like in the decimal system, when it reaches 9 then it goes to 10.
Now, let's count up to 30 using hex:
1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,
10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,
20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30!
CONGRATULATIONS YOU LEARNED HOW TO COUNT USING HEX!
Next lesson is to learn how to convert hex to decimal.
It's actually pretty easy,
For example:
14 = 1Ã161 + 4Ã160 = 20
Get it?
Another example:
69A = 6Ã162 + 9Ã161 + 10Ã160 = 1690
So you understand now? I'll just assume you did ( ͡° ͜ʖ ͡°)
CONGRATULATIONS YOU LEARNED HOW TO CONVERT HEX TO DECIMAL!
Next, decimal to hex.
It's easier...
Just express it in power of 16:
Ex.
69 = 4Ã161 + 5Ã160 = 45
Another example:
61 = 3Ã161 + 13Ã160 = 3D
CONGRATULATIONS YOU LEARNED HOW TO CONVERT DECIMAL TO HEX!
Now for the hard part...
Converting letters to hex!
Just remember this:
Uppercase letters start with 4 or 5
Lowercase letters start with 6 or 7
Okay, now let's take for example, uppercase letter P.
First, get the position of the letter P in the alphabet, which is 16th...
Convert 16 to hex.
16 is 10 when converted to hex.
Now, add this number to 40. (Since uppercase letters start with 4)
40 + 10 = 50.
Therefore, uppercase letter P in hex is 50.
For lowercase, just do the same except that you add it to 60.
Therefore, 60 + 10 = 70.
Therefore, lowercase letter P in hex is 70.
CONGRATULATIONS YOU LEARNED HOW TO CONVERT ANY LETTER TO HEX!
Now, to get words, just combine the letters.
For example, Pikachu
P = 50
i = 69 ( ͡° ͜ʖ ͡°)
k = 6B
a = 61
c = 63
h = 68
u = 75
Just combine these number bits and we get:
50696B61636875
CONGRATULATIONS YOU LEARNED HOW TO CONVERT WORDS TO HEX!
How about numbers?
Number always start with 3.
Therefore, to convert any ASCII number, you just add this number to 30.
For example,
"5" = 35
"69" = 3639
CONGRATULATIONS YOU LEARNED HOW TO CONVERT NUMBERS TO HEX!
Lastly, to convert spaces, symbols, etc.
Just memorize this list, these are the most commonly used symbols:
Space = 20
Period = 2E
Question Mark = 3F
Exclamation Mark = 21
CONGRATULATIONS YOU LEARNED HOW TO CONVERT SYMBOLS TO HEX!
Now you are the master of Hexadecimal
Coming soon: How to Binary, How to BASE64, How to QRCode.
First you must know how to convert numbers to Hex.
Look at this pattern closely:
1 = 1
2 = 2
...
8 = 8
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
16 = 10
17 = 11
18 = 12
Have you noticed anything?
In hex, the number next to 9 goes to A, then continues up to F then becomes 10.
It's like in the decimal system, when it reaches 9 then it goes to 10.
Now, let's count up to 30 using hex:
1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,
10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F,
20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F,30!
CONGRATULATIONS YOU LEARNED HOW TO COUNT USING HEX!
Next lesson is to learn how to convert hex to decimal.
It's actually pretty easy,
For example:
14 = 1Ã161 + 4Ã160 = 20
Get it?
Another example:
69A = 6Ã162 + 9Ã161 + 10Ã160 = 1690
So you understand now? I'll just assume you did ( ͡° ͜ʖ ͡°)
CONGRATULATIONS YOU LEARNED HOW TO CONVERT HEX TO DECIMAL!
Next, decimal to hex.
It's easier...
Just express it in power of 16:
Ex.
69 = 4Ã161 + 5Ã160 = 45
Another example:
61 = 3Ã161 + 13Ã160 = 3D
CONGRATULATIONS YOU LEARNED HOW TO CONVERT DECIMAL TO HEX!
Now for the hard part...
Converting letters to hex!
Just remember this:
Uppercase letters start with 4 or 5
Lowercase letters start with 6 or 7
Okay, now let's take for example, uppercase letter P.
First, get the position of the letter P in the alphabet, which is 16th...
Convert 16 to hex.
16 is 10 when converted to hex.
Now, add this number to 40. (Since uppercase letters start with 4)
40 + 10 = 50.
Therefore, uppercase letter P in hex is 50.
For lowercase, just do the same except that you add it to 60.
Therefore, 60 + 10 = 70.
Therefore, lowercase letter P in hex is 70.
CONGRATULATIONS YOU LEARNED HOW TO CONVERT ANY LETTER TO HEX!
Now, to get words, just combine the letters.
For example, Pikachu
P = 50
i = 69 ( ͡° ͜ʖ ͡°)
k = 6B
a = 61
c = 63
h = 68
u = 75
Just combine these number bits and we get:
50696B61636875
CONGRATULATIONS YOU LEARNED HOW TO CONVERT WORDS TO HEX!
How about numbers?
Number always start with 3.
Therefore, to convert any ASCII number, you just add this number to 30.
For example,
"5" = 35
"69" = 3639
CONGRATULATIONS YOU LEARNED HOW TO CONVERT NUMBERS TO HEX!
Lastly, to convert spaces, symbols, etc.
Just memorize this list, these are the most commonly used symbols:
Space = 20
Period = 2E
Question Mark = 3F
Exclamation Mark = 21
CONGRATULATIONS YOU LEARNED HOW TO CONVERT SYMBOLS TO HEX!
Now you are the master of Hexadecimal
Coming soon: How to Binary, How to BASE64, How to QRCode.