Binascii Module
Anonymous contributor
Published Oct 25, 2023
Contribute to Docs
The binascii
module contains a number of methods to convert between binary and various ASCII-encoded binary representations. It is a valuable resource when dealing with binary data in various contexts, such as network protocols and file handling. Normally, a developer will not use these functions directly but use wrapper modules like uu
or base64
instead. The binascii
module contains low-level functions written in C for greater speed that are used by the higher-level modules. The Python binascii
module is a valuable tool when working with binary data and encoding it into different text formats or decoding text representations back into binary data.
The following functions are provided by the binascii
module:
Binascii Module
- .a2b_uu()
- Returns a new object containing the decoded binary data from ASCII-encoded data in the UUEncode format.
- .b2a_uu()
- Converts binary data into a bytes object containing a string of ASCII characters in UUEncoded format.
All contributors
- Anonymous contributor
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Python on Codecademy
- Career path
Computer Science
Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!Includes 6 CoursesWith Professional CertificationBeginner Friendly75 hours - Course
Learn Python 3
Learn the basics of Python 3.12, one of the most powerful, versatile, and in-demand programming languages today.With CertificateBeginner Friendly23 hours