Message Encryption Investigation

Base 64 Encryption

Base 64 is an encryption system in, you guessed it, base 64. It takes the original message, then converts it into integers using an ASCII table, and then converts it to a stream of binary. This binary is separated into chunks of sixes, which are then encrypted into another charset table which consists of A-Z, a-z, 0-9, + and / (Click Here for more information). The reason it separates the binary stream into chunks of 6 is because 26 is 64, hence why the name is base 64. To convert “BASE64” into base 64, we first need to convert it into ascii, which results in “66, 65, 83, 69, 54, 52”. Converting this into a string of binary we get 010000100100000101010011010001010011011000110100. We separate this into chunks of 6 to get 010000 100100 000101 010011 010001 010011 011000 110100. We then convert this out of binary to get “16, 36, 5, 19, 17, 19, 24, 52” Using the aforementioned base 64 encoder, we get our result of “QkFTRTY0”.

Hexadecimal Encryption

Hexadecimal is an encryption system that uses base 16. This means that instead of using numbers 0-9 to count, it goes 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10. This is kind of confusing at first, because this means that 10 is actually 16 in base 16. This gets even more confusing when you realize that to get a number like 26, you need to add an A to 10, which results in 1A. But don’t worry guys, multiplying 10 and 10 still gives you 100 even though the actual value is 256. If for some reason you want a migrane, click here. To encrypt using hexadecimal, simply convert your message into the good old ASCII charset table, but instead of using the regular numbers to convert to binary, just use the number under the collumn “HX”. For example, the word “HEXADECIMAL” converted into a hexadecimal word will be “48”, “45”, “58”, “41”, “44”, “45”, “43”, “49”, “4D”, “41”, “4C”, which if we group together will result in “484558414543494D414C”.

Leave a Reply

Your email address will not be published. Required fields are marked *