A tool to find well known crc params that matches the input data and crc result (right or wrong)
Project description
CrcFinder
A tool to find well known crc params that matches the input data and crc result (right or wrong)
Usage
As Library
find zlib.crc32
from crcFinder import CrcFinder
import zlib
data = []
data.append((b"123456789", zlib.crc32(b'123456789')))
data.append((b"123456789xxxx", zlib.crc32(b'123456789xxxx')))
f = CrcFinder()
r = f.findCrc(data)
print([str(i) for i in r])
find something else
from crcFinder import CrcFinder
data = []
data.append((b"123456789\x09", b'\x11\x60\x7a\x37'))
data.append((b"1234567890\x0a", b'\xb3\x95\xcb\x46'))
f = CrcFinder()
r = f.findCrc(data)
print(r[0])
use CrcCalculator directly
from crcFinder import CrcCalculator, ShiftType
crc_pkzip = CrcCalculator(32, 0x04c11db7, 0xffffffff, True, True, 0xffffffff, ShiftType.LEFT, ShiftType.LEFT)
assert(crc_pkzip.check() == 0xcbf43926)
cli
python3 -m crcFinder -d 616263646566,4b8e39ef
python3 -m crcFinder -d 616263646566,0x4b8e39ef 313233343536373839,0xcbf43926
Reference
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crcfinder-0.0.1.tar.gz
(18.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
crcfinder-0.0.1-py3-none-any.whl
(17.8 kB
view details)
File details
Details for the file crcfinder-0.0.1.tar.gz.
File metadata
- Download URL: crcfinder-0.0.1.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc6e9eb863833211841169328fee40c4e69deec00dd72ea8962d051a48fc2a80
|
|
| MD5 |
e022d1b3be259bfe744e061a4867348d
|
|
| BLAKE2b-256 |
d1c97c1d79945c59513c4aeb8c738598f8f19303f78cf1e4108ded0a3260e820
|
File details
Details for the file crcfinder-0.0.1-py3-none-any.whl.
File metadata
- Download URL: crcfinder-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4cd4397b6f24807f616aa06e807bf6574fcc4ae7bfb7e0ddebf4b288a38955
|
|
| MD5 |
19fa236e83091a49cc4214cb2544baf1
|
|
| BLAKE2b-256 |
e6f029296e663e0bf5817aa42d4ea6470645283a8904548f57fe6f91d196ad6c
|