hasher/README.md

39 lines
749 B
Markdown
Raw Permalink Normal View History

2023-04-17 14:23:52 +02:00
# Hasher
![GitHub](https://img.shields.io/github/license/cn-ml/hasher?logoColor=%23&style=for-the-badge)
2023-04-17 14:38:38 +02:00
![PyPI](https://img.shields.io/pypi/v/hasher-cnml?style=for-the-badge)
2023-04-17 14:23:52 +02:00
Command line interface to the hashlib library.
2023-04-17 14:38:38 +02:00
## Installation
Install hasher from [PyPI](https://pypi.org/project/hasher-cnml/).
```bash
pip install hasher-cnml
```
## Usage
Create a checksum (defaults to MD5) of the a sample file using:
```bash
python -m hasher file_to_hash.txt
```
Or instead specify the hash algorithm directly (all algorithms from hashlib that are available locally)
```bash
python -m hasher -a sha1 file_to_hash.txt
```
View the usage information:
```bash
python -m hasher -h
```
2023-04-17 14:23:52 +02:00
## Authors
- [@cn-ml](https://www.github.com/cn-ml)