However as we said earlier, Base64 converts the data in 8 bit binary form to chunks of 6 bits. You can see here that each character is represented by 8 bits. The first step is to convert this string into binary. Suppose we have a string "Go win" and we want to convert it into a Base64 string. Find the Base64 symbol for each of the decimal values via a Base64 lookup tableįor a better understanding of this concept, let's take a look at an example.Find the decimal version of each of the 6 bit binary chunk.Re-group the 8 bit version of the data into multiple chunks of 6 bits.Calculate the 8 bit binary version of the input text.Here is how it works for strings of text: How Does Base64 Work?Ĭonverting data to base64 is a multi-step process. In fact, the size of a Base64 encoded piece of information is 1.3333 times the actual size of your original data.īase64 is the most widely used base encoding technique with Base16 and Base32 being the other two commonly used encoding schemes. It is important to mention here that Base64 is not an encryption or compression technique, although it can sometimes be confused as encryption due to the way it seems to obscure data. Base64 encoding is a way to convert data (typically binary) into the ASCII character set.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |