Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
Checksumdir
|badge1| |badge2|
.. |badge1| image:: https://img.shields.io/pypi/dm/checksumdir
:alt: PyPI - Downloads
:target: https://pypi.org/project/checksumdir/
.. |badge2| image:: https://badge.fury.io/py/checksumdir.svg :target: https://pypi.org/project/checksumdir/
A simple module for creating a single hash for a directory of files, with file contents; ignoring any metadata such as file name. Options exist to also exclude specific files or files with specific extensions.
.. code-block:: python
from checksumdir import dirhash
directory = '/path/to/directory/'
md5hash = dirhash(directory, 'md5')
sha1hash = dirhash(directory, 'sha1', excluded_files=['package.json'])
sha256hash = dirhash(directory, 'sha256', excluded_extensions=['pyc'])
Or to use the CLI:
.. code-block:: bash
# Defaults to md5.
$ checksumdir /path/to/directory
# Create sha1 hash:
$ checksumdir -a sha1 /path/to/directory
# Exclude files:
$ checksumdir -e <files> /path/to/directory
# Exclude files with specific extensions:
$ checksumdir -x <extensions> /path/to/directory
# Follow soft links:
$ checksumdir --follow-links /path/to/directory
FAQs
Compute a single hash of the file contents of a directory.
We found that checksumdir demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.