

By consisting only of ASCII characters, base64 strings are generally url-safe, and that's why they can be used to encode data in Data URLs. The Base64 implementation in MIME uses a-z, A-Z and 0-9 for the first 62 values. Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. This mixture leaves the data impossible to be altered in transportation thru information systems, such as electronic mail, that were typically not 8-bit clean. The common concept is to select a set of 64 characters that is both part of a subset typical to most encodings.

The specific set of characters chosen for the 64 characters needed for the base can vary among implementations. Base64 is generally used in a number of applications including electronic mail via MIME, and keeping complex information in XML. This guarantees that the data stays unchanged without modification during transfer. Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. To suppress this you can use in addition to -base64 the -A. By default the encoded file has a line break every 64 characters. If you want to decode a base64 file it is necessary to use the -d option. Types of URI charactersīase64 encoding schemes are generally used when there is a need to encode binary information that needs to be stored and transferred over media that are developed to deal with textual information. a, -A, -base64 These flags tell OpenSSL to apply Base64-encoding before or after the cryptographic operation. Basically, Base64 is a collection of related encoding designs which represent the binary information in ASCII format by converting it into a base64 representation. Base64 encoding is a process of converting binary data to an ASCII string format by converting that binary data into a 6-bit character representation. The term Base64 is coming from a certain MIME content transfer encoding.
