Metadata-Version: 2.1
Name: sha0-py
Version: 0.0.2
Summary: A package implementing the broken SHA-0 hash algorithm.
Author-email: nightxade <matthewcaieatsrice@gmail.com>
Project-URL: homepage, https://github.com/nightxade/sha0
Project-URL: issues, https://github.com/nightxade/sha0/issues
Keywords: sha0,SHA-0,hash
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# sha0

This is a purely Python implementation of the broken SHA-0 hash algorithm. The usage is exactly the same as the hashes provided in the Python builtin `hashlib` library.  

# Credit
This repository is based off of the C implementation of SHA-0 in [this repo](https://github.com/johndoe31415/sha0/blob/master/README.md) by [@johndoe31415](https://github.com/johndoe31415). 

# Installation
```bash
pip install sha0-py 
```

# Usage
```py
# SHA-0 of b"Nobody inspects the spammish repetition"
>>> import sha0
>>> m = sha0.sha0(b"Nobody inspects")
>>> m.update(b" the spammish repetition")
>>> m.digest()
b'\xe2\xb0\xa8`\x9bG\xc5\x8e]\x98L\x9c\xcf\xe6\x9f\x9beK\x03+'
>>> m.hexdigest()
b'e2b0a8609b47c58e5d984c9ccfe69f9b654b032b'

# More condensed
>>> import sha0
>>> m = sha0.sha0(b"Nobody inspects the spammish repetition")
>>> m.hexdigest()
b'e2b0a8609b47c58e5d984c9ccfe69f9b654b032b'
```

# License
MIT License  
