🌐
Python
docs.python.org › 3 › library › binascii.html
binascii — Convert between binary and ASCII — Python 3.14.7 documentation
The binascii module contains a number of methods to convert between binary and various ASCII-encoded binary representations. Normally, you will not use these functions directly but use wrapper modu...
🌐
Python
docs.python.org › 3.1 › library › binascii.html
18.8. binascii — Convert between binary and ASCII — Python v3.1.5 documentation
The binascii module contains a number of methods to convert between binary and various ASCII-encoded binary representations. Normally, you will not use these functions directly but use wrapper modules like uu, base64, or binhex instead.
🌐
Python
docs.python.org › 3.10 › library › binascii.html
binascii — Convert between binary and ASCII — Python 3.10.20 documentation
... a2b_* functions accept Unicode strings containing only ASCII characters. Other functions only accept bytes-like objects (such as bytes, bytearray and other objects that support the buffer protocol). Changed in version 3.3: ASCII-only unicode strings are now accepted by the a2b_* functions.
🌐
Python
docs.python.org › 3.6 › library › binascii.html
19.8. binascii — Convert between binary and ASCII — Python 3.6.15 documentation
Perform hexbin4 binary-to-ASCII translation and return the resulting string. The argument should already be RLE-coded, and have a length divisible by 3 (except possibly the last fragment).
🌐
7-Zip Documentation
documentation.help › python-3-7-3 › binascii.html
binascii — Convert between binary and ASCII - Python 3.7.3 Documentation
The binascii module contains low-level functions written in C for greater speed that are used by the higher-level modules. ... a2b_* functions accept Unicode strings containing only ASCII characters. Other functions only accept bytes-like objects (such as bytes, bytearray and other objects ...
🌐
University of New Brunswick
cs.unb.ca › ~bremner › teaching › cs2613 › books › python3-doc › library › binascii.html
binascii — Convert between binary and ASCII — Python 3.9.2 documentation
print(binascii.crc32(b"hello world")) ... result is always unsigned. To generate the same numeric value across all Python versions and platforms, use crc32(data) & 0xffffffff....
🌐
Python
docs.python.org › 2 › library › binascii.html
18.14. binascii — Convert between binary and ASCII — Python 2.7.18 documentation
July 19, 2020 - Changed in version 3.0: The return value is unsigned and in the range [0, 2**32-1] regardless of platform. binascii.b2a_hex(data)¶ · binascii.hexlify(data)¶ · Return the hexadecimal representation of the binary data. Every byte of data is converted into the corresponding 2-digit hex ...
🌐
W3Schools
w3schools.com › python › ref_module_binascii.asp
Python binascii Module
Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Practice Problems Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Training · ❮ Standard Library Modules · Convert bytes to hex and back: import binascii s = b"Emil" h = binascii.hexlify(s) print(h) print(binascii.unhexlify(h).decode()) Try it Yourself » ·
Find elsewhere
🌐
Codecademy
codecademy.com › docs › python › binascii module
Python | Binascii Module | Codecademy
October 25, 2023 - The binascii module is a built-in module that provides essential functions for working with binary data and performing binary-to-text encoding and decoding.
🌐
200ok
200ok.ch › posts › 2018-12-09_unhexlify.html
Python’s binascii – hexlify() and unhexlify()
December 9, 2009 - binascii.a2b_hex(hexstr) binascii.unhexlify(hexstr) Return the binary data represented by the hexadecimal string hexstr. This function is the inverse of b2a_hex().
🌐
7-Zip Documentation
documentation.help › python 3.7 › 19.8. binascii — convert between binary and ascii
19.8. binascii — Convert between binary and ASCII | Python 3.7 Docu…
print(binascii.crc32(b"hello world")) ... result is always unsigned. To generate the same numeric value across all Python versions and platforms, use crc32(data) & 0xffffffff....
🌐
Read the Docs
stackless.readthedocs.io › en › 3.8-slp › library › binascii.html
binascii — Convert between binary and ASCII — Stackless-Python 3.8.1 documentation
print(binascii.crc32(b"hello world")) ... result is always unsigned. To generate the same numeric value across all Python versions and platforms, use crc32(data) & 0xffffffff....
🌐
PyPI
pypi.org › project › adafruit-circuitpython-binascii
adafruit-circuitpython-binascii
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Codecademy
codecademy.com › docs › python › binascii module › .hexlify()
Python | Binascii Module | .hexlify() | Codecademy
October 29, 2025 - This converts each byte of 'Python3' into a two-character hexadecimal value, producing a readable byte representation.
🌐
7-Zip Documentation
documentation.help › Python-3.3 › binascii.html
19.8. binascii — Convert between binary and ASCII - Python 3.3 Documentation
print(binascii.crc32(b"hello world")) # Or, in two pieces: crc = binascii.crc32(b"hello") crc = binascii.crc32(b" world", crc) & 0xffffffff print('crc32 = {:#010x}'.format(crc)) ... To generate the same numeric value across all Python versions and platforms use crc32(data) & 0xffffffff.
🌐
MicroPython
docs.micropython.org › en › latest › library › binascii.html
binascii – binary/ASCII conversions — MicroPython latest documentation
This module implements a subset of the corresponding CPython module, as described below. For more information, refer to the original CPython documentation: binascii.
🌐
GitHub
github.com › adafruit › Adafruit_CircuitPython_binascii
GitHub - adafruit/Adafruit_CircuitPython_binascii: Helpers for conversions between binary and ASCII · GitHub
mkdir project-name && cd project-name python3 -m venv .venv source .venv/bin/activate pip3 install adafruit-circuitpython-binascii
Starred by 5 users
Forked by 8 users
Languages: Python
🌐
Jython
jython.org › jython-old-sites › docs › library › binascii.html
18.13. binascii — Convert between binary and ASCII — Jython v2.5.2 documentation
Changed in version 3.0: The return value is unsigned and in the range [0, 2**32-1] regardless of platform. ... Return the hexadecimal representation of the binary data. Every byte of data is converted into the corresponding 2-digit hex representation. The resulting string is therefore twice ...