CRC-64 checksum generator
Project description
CRC64ISO
Package for calculating checksums using 64-bit cyclic redundancy checks (CRC) according to the ISO 3309 standard.
Generator polynomial: x64 + x4 + x3 + x + 1
Reference: W. H. Press, S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery, "Numerical recipes in C", 2nd ed., Cambridge University Press. Pages 896ff.
Requirements
- python 3.x
Examples
- Calculate 64-bit checksum from a string:
from crc64iso.crc64iso import crc64
checksum = crc64iso.crc64("ILOVEMATH")
- Calculate 64-bit checksum from incremental (bytes) data:
from crc64iso.crc64iso import crc64_pair, format_crc64_pair
crc_pair_1 = crc64_pair("ILOVE".encode())
crc_pair_2 = crc64_pair("MATH".encode(), crc_pair_1)
checksum = format_crc64_pair(crc_pair_2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crc64iso-0.0.2.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file crc64iso-0.0.2.tar.gz
.
File metadata
- Download URL: crc64iso-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e5dade08ed9325d25e2c38d682b5387e6c53fc533ee87d2db258d27155b4e5d |
|
MD5 | 391715bcb56dcf26f9b496fb0dd939d0 |
|
BLAKE2b-256 | d0cce8899ae3ff67cfc555959e00bdcd90744a2b3ce49628ce0d9b61b7d1407b |
File details
Details for the file crc64iso-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: crc64iso-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ce48ca4850335c5f798731f1b88bce66a2b75c6f47d0145790a0601dca4f847 |
|
MD5 | e092c916285cec8c217ab9250414a086 |
|
BLAKE2b-256 | 86c4631a43781041b44d4b38fbd028967d9631734c7f5c229595a117125dc558 |