sha0-py


Namesha0-py JSON
Version 0.0.2 PyPI version JSON
download
home_pageNone
SummaryA package implementing the broken SHA-0 hash algorithm.
upload_time2024-12-15 07:15:24
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords sha0 sha-0 hash
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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  

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "sha0-py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "sha0, SHA-0, hash",
    "author": null,
    "author_email": "nightxade <matthewcaieatsrice@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/d6/5d/1adc0db119499d8839b6c1ff43612dc3f2e5a92749edb6f5a46aba7b1184/sha0_py-0.0.2.tar.gz",
    "platform": null,
    "description": "# sha0\n\nThis 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.  \n\n# Credit\nThis 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). \n\n# Installation\n```bash\npip install sha0-py \n```\n\n# Usage\n```py\n# SHA-0 of b\"Nobody inspects the spammish repetition\"\n>>> import sha0\n>>> m = sha0.sha0(b\"Nobody inspects\")\n>>> m.update(b\" the spammish repetition\")\n>>> m.digest()\nb'\\xe2\\xb0\\xa8`\\x9bG\\xc5\\x8e]\\x98L\\x9c\\xcf\\xe6\\x9f\\x9beK\\x03+'\n>>> m.hexdigest()\nb'e2b0a8609b47c58e5d984c9ccfe69f9b654b032b'\n\n# More condensed\n>>> import sha0\n>>> m = sha0.sha0(b\"Nobody inspects the spammish repetition\")\n>>> m.hexdigest()\nb'e2b0a8609b47c58e5d984c9ccfe69f9b654b032b'\n```\n\n# License\nMIT License  \n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package implementing the broken SHA-0 hash algorithm.",
    "version": "0.0.2",
    "project_urls": {
        "homepage": "https://github.com/nightxade/sha0",
        "issues": "https://github.com/nightxade/sha0/issues"
    },
    "split_keywords": [
        "sha0",
        " sha-0",
        " hash"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "04554ff28450f3130477add8fa42f26d24510d107bbe4f139c22569ca3449c78",
                "md5": "7bd8045546e140f11a73c00836a9b129",
                "sha256": "4dd641d9c9b609b39ba757682939d83ca2fa238db38a9d6942595d1a751480dc"
            },
            "downloads": -1,
            "filename": "sha0_py-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7bd8045546e140f11a73c00836a9b129",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4794,
            "upload_time": "2024-12-15T07:15:22",
            "upload_time_iso_8601": "2024-12-15T07:15:22.108483Z",
            "url": "https://files.pythonhosted.org/packages/04/55/4ff28450f3130477add8fa42f26d24510d107bbe4f139c22569ca3449c78/sha0_py-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d65d1adc0db119499d8839b6c1ff43612dc3f2e5a92749edb6f5a46aba7b1184",
                "md5": "0b3182bcdc14611d18a68f5a53222d08",
                "sha256": "fab4a3172efe32dfb37abc97bb8611d0e0c861d146d6764dc004516cf77b155a"
            },
            "downloads": -1,
            "filename": "sha0_py-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "0b3182bcdc14611d18a68f5a53222d08",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4901,
            "upload_time": "2024-12-15T07:15:24",
            "upload_time_iso_8601": "2024-12-15T07:15:24.251748Z",
            "url": "https://files.pythonhosted.org/packages/d6/5d/1adc0db119499d8839b6c1ff43612dc3f2e5a92749edb6f5a46aba7b1184/sha0_py-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-15 07:15:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nightxade",
    "github_project": "sha0",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "sha0-py"
}
        
Elapsed time: 0.42262s