On this page
zlib.crc32
Prev: zlib.compressobj | Up: zlib | Next: zlib.decompress
Rel: zlib.adler32, zlib.compress, zlib.compressobj, zlib.decompress
Ref: docs.python.org — zlib.crc32
Tags: #public #python3 #stdlib #zlib
Import
import zlib
from zlib import crc32
Signature & Overview
zlib.crc32(data, value=0, /)
Compute a CRC-32 checksum of data.
Usage
import zlib
assert zlib.crc32(b'hello') == 0x3610A686
Gotchas
- Unsigned 32-bit CRC (matches
binascii.crc32).
REPL Inspect
from zlib import crc32
help(crc32)
Linked from
Related notes
- tuts/python3/stdlib_module/zlib/adler32 Linked here; links to this page; shared tags: #stdlib, #zlib
- tuts/python3/stdlib_module/zlib/compress Linked here; links to this page; shared tags: #stdlib, #zlib
- tuts/python3/stdlib_module/zlib/compressobj Linked here; links to this page; shared tags: #stdlib, #zlib
- tuts/python3/stdlib_module/zlib/decompress Linked here; links to this page; shared tags: #stdlib, #zlib
- tuts/python3/stdlib_module/zlib Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/zlib/decompressobj links to this page; shared tags: #stdlib, #zlib
- tuts/python3/stdlib_module/zlib/error links to this page; shared tags: #stdlib, #zlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib