First off, why in the heck do you need to know how to convert into hexadecimal? The answer is....it depends.
Do you think you might be sniffing networks one day? Or maybe you sniff networks already but do not really care about the hexadecimal displayed at the bottom of Wireshark? Or maybe you just want to learn? My goal is to take five minutes or less of your time and teach you a very simple conversion that most people avoid.
Let's start!
- I am going to pick a random number.......lets say 1154
- Now the number 16 is very very very very important for hex, you will see why. (16, in case you forgot the number already)
- 1154 will be divided by 16
(don't worry I have a calculator so I'll do the math)
- The magic comes with the "remainder not the actual result." So lets take the 72 and put it aside for a second, we are going to focus on the .125
(remember that 16 number? Told ya its important)
- .125 will be multiplied by 16
(if you haven't already, open up the attachment named "Hex Table.doc")
- Now we will bring back the 72, we will now continue to divide this number by 16
- Answer = 4.5
(Remember we will stash 4 away for a few moments and only worry about the .5)
(We will now bring that 4 back into the picture)
(Now we do not have to worry about any whole numbers only the decimal)
- .25 x 16 = 4
- 4 in hex = 4
(Now from all of these equations, to make sure all of your work is correct, you will read from your MOST RECENT answer to the VERY FIRST answer you received)
- Most recent answer we got in hex was 4,
- Previous to that 8
- And our first hex answer was 2
Drum roll please................................
1154 in hexadecimal is
482
Its that easy! If you have not opened the attachment, FYI any hex equivalent after you get above the number 9 turns into a letter. Example Below:
1=1
2=2
3=3
4=4
5=5
6=6
7=7
8=8
9=9
10=A
11=B
12=C
13=D
14=E
15=F
(15 is the highest you can go when it comes to hex)
I hope this didn't take more than five minutes like I advertised at the beginning, if so...I'm kinda sorry.
Now go about your day and go brag to your friends that you know hex