Question: As an example, here is how to convert the base 64 string SGFwcHkgQmlydGh-kYXk= into its decimal equivalent. In this example, the first four characters--S, G,
As an example, here is how to convert the base 64 string SGFwcHkgQmlydGh-kYXk= into its decimal equivalent. In this example, the first four characters--S, G, F, and w- are written as three 8-bit numbers (24 bits = 3 x 8). 1. Convert the decimal value of each letter to binary: S = 18 decimal, binary 010010 G=6 decimal, binary 000110 F-5 decimal, binary 000101 w=48 decimal, binary 110000 2. Rewrite the four binary groups into three groups of 8 bits. For example, starting with the lower-order bit of the binary equivalent of "w," writing from right to left produces [01]110000. The bracketed binary numbers represent the first two lower-order bits from the F binary equivalent, 1 and 0: 01001000 01100001 01110000 3. Convert the binary into its decimal equivalent: a. 01110000 = 112 ASCII - H b. 01001000 = 72 ASCII-a c. 01100001 = 97 ASCII =P Repeat Steps 1 to 3 for the next four base-64 numbers, cHks, until each letter's base-64 number is converted. (One or two equal signs are used when 3 bytes 24
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
