Base64 body encoding
04Base64 converts body octets into a restricted alphabet suitable for mail transport.
DIAGRAMRead RFC section 6.8 ↗
RFC 2045 · § 6.8EXAMPLE
3 / 3
03
Wrap for MIME transport
Use the MIME line-length rules, distinct from generic no-wrap Base64 profiles.
Key idea: Three bytes become four encoded characters.
Rules & examples
Three bytes become four encoded characters.
- Three bytes become four encoded characters.
- MIME encoded lines must not exceed 76 characters.
- Base64 adds no confidentiality or authenticity.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background
The envelope and the letter do different jobs.
Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
Read the updated RFC section ↗