Representing Data 1
- How do these ones and zeros work? https://learn.sparkfun.com/tutorials/binary
Also hey, what is hex? https://learn.sparkfun.com/tutorials/hexadecimal
- You should have a hex editor in your VM.
- Download our logo and view it in the Hex Editor.
- What is a magic number? What is the magic number of our logo?
File formats (and networking protocols, and all sorts of other things on the internet) are defined in documents known as RFCS. Read through the .png format RFC and find where the magic number is defined. Nobody has this content memorized, but when they deep dive into a format or protocol, the RFC has the answers. https://tools.ietf.org/html/rfc2083
Any time you need to deal with a file format, google will provide most of the answers. If you need to dig deeper than that, go to the RFC.
Also, hey, what is ascii? This is ascii. https://learn.sparkfun.com/tutorials/ascii
- Do this <https://code.tutsplus.com/articles/number-systems-an-introduction-to-binary-hexadecimal-and-more--active-10848. Submit a screenshot showing your completion.>
- How many bits are used for each character in ASCII?
- "01101000 01100101 01101100 01101100 01101111 00100001" is in binary. Convert it back to ASCII. Do it by hand using the chart.
- Alright. Now. Convert 17 in Ascii to Binary and Hex. Do it by hand.
- Convert "Go Navy" to Octal, Hex, and Binary. Yes. By hand. Use Google to figure out how.
- What does "c2l4dHlmb3Vy" translate to from Base64?
- It is annoying to do that by hand, but it does help. Here is a tool so that you never have to do that again. https://gchq.github.io/CyberChef/. Fun fact, it is released by GCHQ, Britain's version of the NSA. Great tool and very useful. There are about a thousand uses for this thing, you can find a bunch on GitHub.