gethash


Namegethash JSON
Version 6.1 PyPI version JSON
download
home_page
SummaryCommand-line hash utility
upload_time2023-11-30 13:32:20
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords cryptography hash utility
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Gethash

[![PyPI - Version](https://img.shields.io/pypi/v/gethash)](https://pypi.org/project/gethash/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gethash)](https://pypi.org/project/gethash/)
[![PyPI - Downloads](https://static.pepy.tech/badge/gethash/month)](https://pepy.tech/project/gethash)
[![PyPI - License](https://img.shields.io/pypi/l/gethash)](https://pypi.org/project/gethash/)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

Gethash is a command-line hash utility.

## Installation

Install from PyPI:

```shell
$ pip install gethash
```

or if you need legacy hash algorithms:

```shell
$ pip install "gethash[all]"
```

## Usage

After installation, 10 commands are available:

- crc32
- md5
- sha1
- sha256
- sha512
- sha3-256
- sha3-512
- blake2b
- blake2s
- gethash

Show command-line usage:

```shell
$ gethash --help
Usage: gethash [OPTIONS] COMMAND [ARGS]...

  Generate or check various hash values.

Options:
  -V, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  blake2b     Generate or check BLAKE2b.
  blake2s     Generate or check BLAKE2s.
  crc32       Generate or check CRC32.
  md2         Generate or check MD2.
  md4         Generate or check MD4.
  md5         Generate or check MD5.
  md5-sha1    Generate or check MD5-SHA1.
  mdc2        Generate or check MDC2.
  ripemd160   Generate or check RIPEMD160.
  sha1        Generate or check SHA1.
  sha3-224    Generate or check SHA3-224.
  sha3-256    Generate or check SHA3-256.
  sha3-384    Generate or check SHA3-384.
  sha3-512    Generate or check SHA3-512.
  sha224      Generate or check SHA224.
  sha256      Generate or check SHA256.
  sha384      Generate or check SHA384.
  sha512      Generate or check SHA512.
  sha512-224  Generate or check SHA512-224.
  sha512-256  Generate or check SHA512-256.
  sm3         Generate or check SM3.
  whirlpool   Generate or check WHIRLPOOL.
```

### Generate hash values

```shell
$ ls -l
total 296
-rw-r--r-- 1 User 197610  68074 Jun 27 10:43 001.zip
-rw-r--r-- 1 User 197610 126717 Jun 27 10:43 002.zip
-rw-r--r-- 1 User 197610 103064 Jun 27 10:44 003.zip

$ sha1 -s *.zip
7701133eb84b567362fbf1b9e3883d7620ee8ada *001.zip
0d6c6cb6908064139f419c1b528f99142a1f2a49 *002.zip
10e2c0d8aa85add2ba495393f7f7f0b0baaf34a6 *003.zip

$ ls -l
total 299
-rw-r--r-- 1 User 197610  68074 Jun 27 10:43 001.zip
-rw-r--r-- 1 User 197610     51 Jun 27 10:44 001.zip.sha1
-rw-r--r-- 1 User 197610 126717 Jun 27 10:43 002.zip
-rw-r--r-- 1 User 197610     51 Jun 27 10:44 002.zip.sha1
-rw-r--r-- 1 User 197610 103064 Jun 27 10:44 003.zip
-rw-r--r-- 1 User 197610     51 Jun 27 10:44 003.zip.sha1
```

### Check hash values

```shell
$ cat *.sha1
7701133eb84b567362fbf1b9e3883d7620ee8ada *001.zip
0d6c6cb6908064139f419c1b528f99142a1f2a49 *002.zip
10e2c0d8aa85add2ba495393f7f7f0b0baaf34a6 *003.zip

$ sha1 -c *.sha1
[SUCCESS] 001.zip
[SUCCESS] 002.zip
[SUCCESS] 003.zip
```

## Project Links

- Changelog: <https://github.com/xymy/gethash/blob/main/CHANGELOG.md>
- Documentation: <https://github.com/xymy/gethash/tree/main/docs>
- Source: <https://github.com/xymy/gethash>
- Tracker: <https://github.com/xymy/gethash/issues>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "gethash",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "cryptography,hash,utility",
    "author": "",
    "author_email": "xymy <thyfan@163.com>",
    "download_url": "https://files.pythonhosted.org/packages/fb/d5/40c94ee793ff14c58cfa58e8a7595c7c1acc19a0f99f86d6873a057fd0e5/gethash-6.1.tar.gz",
    "platform": null,
    "description": "# Gethash\n\n[![PyPI - Version](https://img.shields.io/pypi/v/gethash)](https://pypi.org/project/gethash/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gethash)](https://pypi.org/project/gethash/)\n[![PyPI - Downloads](https://static.pepy.tech/badge/gethash/month)](https://pepy.tech/project/gethash)\n[![PyPI - License](https://img.shields.io/pypi/l/gethash)](https://pypi.org/project/gethash/)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\nGethash is a command-line hash utility.\n\n## Installation\n\nInstall from PyPI:\n\n```shell\n$ pip install gethash\n```\n\nor if you need legacy hash algorithms:\n\n```shell\n$ pip install \"gethash[all]\"\n```\n\n## Usage\n\nAfter installation, 10 commands are available:\n\n- crc32\n- md5\n- sha1\n- sha256\n- sha512\n- sha3-256\n- sha3-512\n- blake2b\n- blake2s\n- gethash\n\nShow command-line usage:\n\n```shell\n$ gethash --help\nUsage: gethash [OPTIONS] COMMAND [ARGS]...\n\n  Generate or check various hash values.\n\nOptions:\n  -V, --version  Show the version and exit.\n  -h, --help     Show this message and exit.\n\nCommands:\n  blake2b     Generate or check BLAKE2b.\n  blake2s     Generate or check BLAKE2s.\n  crc32       Generate or check CRC32.\n  md2         Generate or check MD2.\n  md4         Generate or check MD4.\n  md5         Generate or check MD5.\n  md5-sha1    Generate or check MD5-SHA1.\n  mdc2        Generate or check MDC2.\n  ripemd160   Generate or check RIPEMD160.\n  sha1        Generate or check SHA1.\n  sha3-224    Generate or check SHA3-224.\n  sha3-256    Generate or check SHA3-256.\n  sha3-384    Generate or check SHA3-384.\n  sha3-512    Generate or check SHA3-512.\n  sha224      Generate or check SHA224.\n  sha256      Generate or check SHA256.\n  sha384      Generate or check SHA384.\n  sha512      Generate or check SHA512.\n  sha512-224  Generate or check SHA512-224.\n  sha512-256  Generate or check SHA512-256.\n  sm3         Generate or check SM3.\n  whirlpool   Generate or check WHIRLPOOL.\n```\n\n### Generate hash values\n\n```shell\n$ ls -l\ntotal 296\n-rw-r--r-- 1 User 197610  68074 Jun 27 10:43 001.zip\n-rw-r--r-- 1 User 197610 126717 Jun 27 10:43 002.zip\n-rw-r--r-- 1 User 197610 103064 Jun 27 10:44 003.zip\n\n$ sha1 -s *.zip\n7701133eb84b567362fbf1b9e3883d7620ee8ada *001.zip\n0d6c6cb6908064139f419c1b528f99142a1f2a49 *002.zip\n10e2c0d8aa85add2ba495393f7f7f0b0baaf34a6 *003.zip\n\n$ ls -l\ntotal 299\n-rw-r--r-- 1 User 197610  68074 Jun 27 10:43 001.zip\n-rw-r--r-- 1 User 197610     51 Jun 27 10:44 001.zip.sha1\n-rw-r--r-- 1 User 197610 126717 Jun 27 10:43 002.zip\n-rw-r--r-- 1 User 197610     51 Jun 27 10:44 002.zip.sha1\n-rw-r--r-- 1 User 197610 103064 Jun 27 10:44 003.zip\n-rw-r--r-- 1 User 197610     51 Jun 27 10:44 003.zip.sha1\n```\n\n### Check hash values\n\n```shell\n$ cat *.sha1\n7701133eb84b567362fbf1b9e3883d7620ee8ada *001.zip\n0d6c6cb6908064139f419c1b528f99142a1f2a49 *002.zip\n10e2c0d8aa85add2ba495393f7f7f0b0baaf34a6 *003.zip\n\n$ sha1 -c *.sha1\n[SUCCESS] 001.zip\n[SUCCESS] 002.zip\n[SUCCESS] 003.zip\n```\n\n## Project Links\n\n- Changelog: <https://github.com/xymy/gethash/blob/main/CHANGELOG.md>\n- Documentation: <https://github.com/xymy/gethash/tree/main/docs>\n- Source: <https://github.com/xymy/gethash>\n- Tracker: <https://github.com/xymy/gethash/issues>\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Command-line hash utility",
    "version": "6.1",
    "project_urls": {
        "Changelog": "https://github.com/xymy/gethash/blob/main/CHANGELOG.md",
        "Documentation": "https://github.com/xymy/gethash/tree/main/docs",
        "Source": "https://github.com/xymy/gethash",
        "Tracker": "https://github.com/xymy/gethash/issues"
    },
    "split_keywords": [
        "cryptography",
        "hash",
        "utility"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e69968df201f929493e0316ce80a4fa55fa6bcb30b1dc879e517f7e46f7b10ea",
                "md5": "cfe9e62193c015acd0e696e2bad19daa",
                "sha256": "825e2d14a54deb592b82cf4a8990d6abe685ced61b02eafd60d24cf05fa0b988"
            },
            "downloads": -1,
            "filename": "gethash-6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cfe9e62193c015acd0e696e2bad19daa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 24093,
            "upload_time": "2023-11-30T13:32:17",
            "upload_time_iso_8601": "2023-11-30T13:32:17.483270Z",
            "url": "https://files.pythonhosted.org/packages/e6/99/68df201f929493e0316ce80a4fa55fa6bcb30b1dc879e517f7e46f7b10ea/gethash-6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbd540c94ee793ff14c58cfa58e8a7595c7c1acc19a0f99f86d6873a057fd0e5",
                "md5": "6c3082f8e17253505049886fa2f2e192",
                "sha256": "0717e382d24fe8d30066d50e8ed300301c80729c91479414743689359ff243e4"
            },
            "downloads": -1,
            "filename": "gethash-6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6c3082f8e17253505049886fa2f2e192",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 26035,
            "upload_time": "2023-11-30T13:32:20",
            "upload_time_iso_8601": "2023-11-30T13:32:20.170326Z",
            "url": "https://files.pythonhosted.org/packages/fb/d5/40c94ee793ff14c58cfa58e8a7595c7c1acc19a0f99f86d6873a057fd0e5/gethash-6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-30 13:32:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xymy",
    "github_project": "gethash",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "gethash"
}
        
Elapsed time: 0.16244s