Encoding Schemes
The plugin supports three Base64 encoding schemes: BASIC, MIME, and URL and Filename Safe. These schemes are based on the standards defined in RFC 4648 and RFC 2045.
By default, the plugin uses the MIME scheme for encoding and decoding files. Users can change the encoding scheme of an encoded file through the appropriate action in the editor’s popup menu. See Encoded File Actions for details.
Scheme | Definition | Key Characteristics |
---|---|---|
BASIC | Uses “The Base64 Alphabet” as specified in Table 1 of RFC 4648 and RFC 2045 | Does not add any line feed (line separator) characters to the encoded output. Rejects data containing characters outside the Base64 alphabet during decoding. |
URL | Uses the “URL and Filename Safe Base64 Alphabet” as specified in Table 2 of RFC 4648. | Replaces + with - and / with _ in the encoded output to ensure compatibility with URLs and filenames. Does not add any line feed (line separator) characters to the encoded output. Rejects data containing characters outside the Base64 alphabet during decoding. |
MIME | Uses “The Base64 Alphabet” as specified in Table 1 of RFC 2045. | Encoded output is formatted in lines of no more than 76 characters. Uses a carriage return (\r) followed by a linefeed (\n) as the line separator. Does not add a line separator at the end of the encoded output. Ignores all line separators or other characters not found in the Base64 alphabet during decoding. |