![]() |
|
Learn Binary, Hexideximal, Octal And A Bit About Memory - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +---- Thread: Learn Binary, Hexideximal, Octal And A Bit About Memory (/showthread.php?tid=3027200) |
Learn Binary, Hexideximal, Octal And A Bit About Memory - PhobicHD - Nov 17, 2012 This is base off a thread by Perfect Cell on binary but then expanded to include Hex, Octal, Quaternary, and some information about memory and number systems. Here is Perfect Cells original post https://hackforums.net/showthread.php?tid=3026611 or i quoted it here (Nov 16, 2012 06:47 PM)Perfect Cell Wrote: Vandal's request. Now to elaborate a little bit more Bits are pieces of information with two possible values. These can be thought of as true and false or 1 and 0 in the case of binary or even high and low. Bits are the basis of storing digital information( computers are digital as opposed to analog ). Now we group bits together into bytes. Bytes are just 8 bits next to each other ( notice how each letter in the tutorial is 8 0s or 1s long?). Bytes can hole 256 values or 2 exponent 8 ( 2*2*2*2*2*2*2*2 ). As Perfect cell described they use the place values 1, 2, 4, 8, 16, 32, 64, 128 or 2 exponent 0, 2 exp 1, 2 exp 2, ect, 2 exp 7. Notice how we are doubling the amount each time? Binary can be thought of as a base two number system. Just as in our base 10 number system (1) is 10 exp 0 and (10) is 10 exp 1 and (100) is 10 exp 2 in binary (001) is 2 exp 0, (0010 or two in words) is 2 exp 1 and (00100 or four in words) is 2 exp 2. Now there is something called hexidecimal and something called octal as well. Hexidecimal is a base 16 number system ( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 , A or ten, B or eleven, C, D , E , F) so 17 in hexidecimal is 11. Now just as 2 exp 8 is 256 or one byte, 16 exp 2 is 256 or one byte which means as binary is 8 { 0s or 1s } per byte hexidecimal is 2 { 0s to Fs } per byte. Octal is just a base 8 number system. Since 8 exp 3 = 256 or a byte there are 3 { 0s to 7s } per byte. So 63 in a base ten number system is 0011 in binary and 3F in hexidecimal and 077 in octal. With these ideas we could also express a byte in base 4 since 4 exp 4 is 256. This is called quaternary i just googled it but ive never heard about it before. By the same concepts I should be able to write quaternary though. The place values should be 64 16 4 1 . So 63 should be ( 0333 ) Since ascii dictates as perfect cube said A = 65 then my name should be BASE 10 or Decimal ( normal numbers): 80 72 79 66 73 67 72 68 BASE 2 or Binary: 01010000 01001000 01001111 01000010 01001001 01000011 01001000 01000100 BASE 16 or Hexidecimal: 50 48 4f 42 49 43 48 44 BASE 8 or octal: 120 110 117 103 111 103 110 104 BASE 4 or Quaternary: 1100 1020 1033 1002 1021 1003 1020 1010 I hope that all makes sense. ps. a kilobyte is not 1000 bytes its 1024 or 2 exp 10. Same with mega giga and tera bytes. 1024 bytes = kilobyte ::: 1024 kilobytes = megabyte ::: 1024 megabytes = gigabyte ::: 1024 gigabyte = terabyte Extended Challenge: Post your username in any or all of the number systems. * - Terry A. Davis - Nov 17, 2012 If ANYONE boost there post count by saying he is stealing this from me, you better be prepared for one hell of a ass whipping. Any way, :D Thanks for doing this :D * - PhobicHD - Nov 17, 2012 (Nov 17, 2012 12:42 AM)Perfect Cell Wrote: If ANYONE boost there post count by saying he is stealing this from me, you better be prepared for one hell of a ass whipping.Hahahhahahahaha Now I feel guilty somehow about replying here but yeah of course no problem, It was a HQ original tutorial and I didn't wanna hijack your thread or anything * - zapfen - Nov 17, 2012 Nice tutorial :) easy to understand Thanks for sharing. * - Dolan. - Nov 17, 2012 Why would you take anything that Perfect Cell says? Everybody knows he is the biggest skid on HF. * - Terry A. Davis - Nov 17, 2012 (Nov 17, 2012 03:28 AM)Dolan. Wrote: Why would you take anything that Perfect Cell says? Dolan, we all know I steal what I write and pass it off as my own. P.S Your a cock sucker * - PhobicHD - Nov 17, 2012 Did you two piss in each others coffee this morning AGAIN?! * - Terry A. Davis - Nov 17, 2012 (Nov 17, 2012 05:31 PM)PhobicHD Wrote: Did you two piss in each others coffee this morning AGAIN?! No, he doxed me when I followed him with my wrong twitter now we are "friends" * - PhobicHD - Nov 17, 2012 Well I guess I'm sorry to get between you two then. * - amus3d - Nov 17, 2012 Thanks for this, nice general knowledge. :3 * - Hinshi - Nov 17, 2012 Great read, I thoroughly enjoyed it OP. * - Zygote-bastard - Nov 18, 2012 I still don't understand how "65" is "A" in binary when binary is only ones and zeros. Can someone help me to understand? * - binder420 - Nov 18, 2012 thank you that was really helpful its good to learn something new * - PhobicHD - Nov 18, 2012 A = 65 in ascii. http://en.wikipedia.org/wiki/ASCII You will notice a lot of ascii tables ( like this one http://en.wikipedia.org/wiki/File:ASCII_Code_Chart.svg ) will only go up to 128. If you use your hexidecimal skills you know that on the second row the first number is (10 or seventeen). You also know the last ascii character DEL is 7F or 127 (its 128 because 0 is a number too so 127 + 1 for 0 ). This is because originally there were only 128 ascii character( half a byte ). However they have made a extension to 256 characters ( a byte ). |