19. Internet Data Handling
- 19.1.email - An email and MIME handling package
- 19.2.json - JSON encoder and decoder
- 19.3.mailcap - Mailcap file handling
- 19.4.mailbox - Manipulate mailboxes in various formats
- 19.5.mimetypes - Map filenames to MIME types
- 19.6.base64 - Base16, Base32, Base64, Base85 Data Encodings
- 19.7.binhex - Encode and decode binhex4 files
- 19.8.binascii - Convert between binary and ASCII
- 19.9.quopri - Encode and decode MIME quoted-printable data
- 19.10.uu - Encode and decode uuencode files
base64 encoding
import base64
usrPass = b"0efdd7a253a93:Mjg0Nzg3MjQ5OTg2MTExODA0NzM0NDg5NDU0OTg3ODM3NDE"
b64Val = base64.b64encode(usrPass)
b64Val
>>>b'MGVmZGQ3YTI1M2E5MzpNamcwTnpnM01qUTVPVGcyTVRFeE9EQTBOek0wTkRnNU5EVTBPVGczT0RNM05ERQ=='