HashGenerator


NameHashGenerator JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/LpCodes/HashGenerator
SummaryA simple file hash calculator supporting multiple algorithms
upload_time2024-06-26 16:00:48
maintainerNone
docs_urlNone
authorLpCodes
requires_python>=3.6
licenseNone
keywords file hash hashing checksum algorithm md5 sha1 sha256 sha512
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# HashGenerator 🔒

HashGenerator is a simple Python package to calculate the hash of a file using various hashing algorithms.

## Installation ⚙️

To install the package, use pip:

```bash
pip install HashGenerator
```

## Usage 🚀

Here's how you can use the `HashGenerator` package to calculate file hashes:

```python
from HashGenerator import calculate_hash

# Calculate SHA-256 hash
hash_value = calculate_hash('path/to/your/file.txt', 'sha256')
print(f"SHA-256: {hash_value}")

# Calculate MD5 hash
hash_value = calculate_hash('path/to/your/file.txt', 'md5')
print(f"MD5: {hash_value}")

# Calculate SHA-512 hash
hash_value = calculate_hash('path/to/your/file.txt', 'sha512')
print(f"SHA-512: {hash_value}")
```

## Supported Algorithms 🔐

The following hashing algorithms are supported:

- md5
- sha1
- sha224
- sha256
- sha384
- sha512

## Example 💡

Here's an example of how to use the `HashGenerator` package:

```python
from HashGenerator import calculate_hash

file_path = 'example.txt'
algorithm = 'sha256'

hash_value = calculate_hash(file_path, algorithm)
print(f"The {algorithm} hash of the file is: {hash_value}")
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/LpCodes/HashGenerator",
    "name": "HashGenerator",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "file, hash, hashing, checksum, algorithm, md5, sha1, sha256, sha512",
    "author": "LpCodes",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/bd/ae/468f1d9423725e9bc02726640141aef7c68ad910422e0c3a163f3906e91d/HashGenerator-1.0.1.tar.gz",
    "platform": null,
    "description": "\r\n# HashGenerator \ud83d\udd12\r\n\r\nHashGenerator is a simple Python package to calculate the hash of a file using various hashing algorithms.\r\n\r\n## Installation \u2699\ufe0f\r\n\r\nTo install the package, use pip:\r\n\r\n```bash\r\npip install HashGenerator\r\n```\r\n\r\n## Usage \ud83d\ude80\r\n\r\nHere's how you can use the `HashGenerator` package to calculate file hashes:\r\n\r\n```python\r\nfrom HashGenerator import calculate_hash\r\n\r\n# Calculate SHA-256 hash\r\nhash_value = calculate_hash('path/to/your/file.txt', 'sha256')\r\nprint(f\"SHA-256: {hash_value}\")\r\n\r\n# Calculate MD5 hash\r\nhash_value = calculate_hash('path/to/your/file.txt', 'md5')\r\nprint(f\"MD5: {hash_value}\")\r\n\r\n# Calculate SHA-512 hash\r\nhash_value = calculate_hash('path/to/your/file.txt', 'sha512')\r\nprint(f\"SHA-512: {hash_value}\")\r\n```\r\n\r\n## Supported Algorithms \ud83d\udd10\r\n\r\nThe following hashing algorithms are supported:\r\n\r\n- md5\r\n- sha1\r\n- sha224\r\n- sha256\r\n- sha384\r\n- sha512\r\n\r\n## Example \ud83d\udca1\r\n\r\nHere's an example of how to use the `HashGenerator` package:\r\n\r\n```python\r\nfrom HashGenerator import calculate_hash\r\n\r\nfile_path = 'example.txt'\r\nalgorithm = 'sha256'\r\n\r\nhash_value = calculate_hash(file_path, algorithm)\r\nprint(f\"The {algorithm} hash of the file is: {hash_value}\")\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple file hash calculator supporting multiple algorithms",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/LpCodes/HashGenerator"
    },
    "split_keywords": [
        "file",
        " hash",
        " hashing",
        " checksum",
        " algorithm",
        " md5",
        " sha1",
        " sha256",
        " sha512"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bdae468f1d9423725e9bc02726640141aef7c68ad910422e0c3a163f3906e91d",
                "md5": "492d509667a19888c3164ba4e7e300e8",
                "sha256": "2e69b9e90782d63d9132e8242e0f0de292b15d4d30e5653e7bc2031621895362"
            },
            "downloads": -1,
            "filename": "HashGenerator-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "492d509667a19888c3164ba4e7e300e8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2265,
            "upload_time": "2024-06-26T16:00:48",
            "upload_time_iso_8601": "2024-06-26T16:00:48.824095Z",
            "url": "https://files.pythonhosted.org/packages/bd/ae/468f1d9423725e9bc02726640141aef7c68ad910422e0c3a163f3906e91d/HashGenerator-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-26 16:00:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LpCodes",
    "github_project": "HashGenerator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hashgenerator"
}
        
Elapsed time: 0.41855s