Skip to main content

Hashing Application

Project description

[![Snap Status](https://build.snapcraft.io/badge/JavadSM/hashit.svg)](https://build.snapcraft.io/user/JavadSM/hashit)
Project is hosted on [pypi](https://pypi.org/project/hashit/)

Hashit is an hashing program which can be uses to hash and verify muliple files on a system.
I got the idea from an ubuntu iso image which have this hash table, so i got the idea to make
such a program using python.

### Notice:
some hashes as blake2b and blake2s is not supported in python2
and all shake hashes is disabled for now

## Usage

------------------------------------
Command line wise
```bash
(python3 -m) hashit [options] $path
```
From python you can do it like this
```py
from hashit import hashlib, blockIter, hashIter, hashFile, new

file = open("somefile", "rb")

# memory efficent generator
hash1 = hashIter(blockIter(file, blocksize=65536), hasher=new("md5"), ashexstr=True)

# easy access
hash2 = hashFile("somefile", new("md5"), False) # enable memory effienct generator (False)

assert hash1 == hash2
print(hash1, hash2)

```

## Changelog

------------------------------------------------------------
3.0.1 - Added --size option that allows the program to check file sizes to

3.0.0 - New release, added tests full color-support and CRC32 hashing! (Also added an -a option)

2.3.0 - Fixed a bunch of code, made it faster better more powerful. Full support for sfv and more!

2.1.3 - Fixed detect bugs added unit tests and some fixes

2.1.2 - Done with detect.py working hash detection

2.1.1 - Some more bugfixed, started working on detect.py

2.1.0 - Updated to support newest version of argc

2.0.1 - Bugfixes

1.2.0 - Full Release

1.1.0 - Added support for python2 and

1.0.2 - Double exits' fixed

1.0.1 - Fixed printing bug

1.0.0 - Major version

0.0.3 - Added documentation and license

0.0.2 - Fixing script bugs

0.0.1 - Initial release, ready for use

Works with python2 and python3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hashit-3.0.1.tar.gz (13.9 kB view details)

Uploaded Source

File details

Details for the file hashit-3.0.1.tar.gz.

File metadata

  • Download URL: hashit-3.0.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hashit-3.0.1.tar.gz
Algorithm Hash digest
SHA256 5c99516ef8ec81aad77c75149e3bfed6009745846b652334b111f26cb5ac51ae
MD5 5af749813328a1deb99ae86a50df2047
BLAKE2b-256 1d26bd5d6df9dc0b4f5b2b544f469c6000c6695ad50df33a5b77a1b78e814138

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page