BSD Ports

security/py-dirhash 0.2.1_2 DragonFly

Python module and CLI for hashing of file system directories

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
python, security
Package size
20.0 KiB, 112.7 KiB installed

Description

A lightweight python module and CLI for computing the hash of any directory based on its files structure and content.

  • Supports all hashing algorithms of Python's built-in hashlib module.
  • Glob/wildcard (".gitignore style") path matching for expressive filtering of files to include/exclude.
  • Multiprocessing for up to 6x speed-up

The hash is computed according to the Dirhash Standard, which is designed to allow for consistent and collision resistant generation/verification of directory hashes across implementations.

In the other systems

SystemPortVersion
DragonFlysecurity/py-dirhash0.2.1_2
FreeBSDsecurity/py-dirhash0.5.0
HardenedBSDsecurity/py-dirhash0.5.0
GhostBSDsecurity/py-dirhash0.5.0

Install

Binary package:

pkg install py311-dirhash

From DPorts:

cd /usr/dports/security/py-dirhash && make install clean

Dependencies

Run dependencies 2

No port depends on this one.