
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
crc8
Advanced tools
.. image:: https://badge.fury.io/py/crc8.svg :target: https://pypi.python.org/pypi/crc8 :alt: Python Package Version on Pypi
.. image:: https://img.shields.io/pypi/dm/crc8.svg :target: https://pypi.python.org/pypi/crc8#downloads :alt: Downloads from Pypi
A module that implements the CRC8 hash algorithm for Python 2 and 3.
.. code:: bash
pip install crc8
Or copy the crc8.py <https://github.com/niccokunzmann/crc8/blob/master/crc8.py>__ file somewhere
where you can import it.
The crc8 class has the same interface as the hash functions in the
hashlib module <https://docs.python.org/2/library/hashlib.html>__.
Example:
.. code:: python
import crc8
hash = crc8.crc8()
hash.update(b'123')
assert hash.hexdigest() == 'c0'
assert hash.digest() == b'\xc0'
hash.reset()
assert hash.hexdigest() == '00'
You can also use the method chaining syntax:
.. code:: python
import crc8
hash = crc8.crc8()
result = hash.reset().update(b'123').hexdigest()
assert result == 'c0'
If something s not there that you would like to have,
open an issue <https://github.com/niccokunzmann/crc8/issues>,
create a pull request <https://github.com/niccokunzmann/crc8/pulls>.
The license is MIT <https://github.com/niccokunzmann/crc8/blob/master/LICENSE>__ and
I value contributions if you modify the code.
reset() by henriksod <https://github.com/henriksod>_FevGeb <https://github.com/FevGeb>_Install twine <https://twine.readthedocs.io/en/stable/>_.
.. code:: sh
python setup.py sdist
source .env # if you have stored TWINE_USERNAME and TWINE_PASSWORD
twine upload dist/*
FAQs
A module that implements the CRC8 hash algorithm for Python 2 and 3.
We found that crc8 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.