Skip to main content

Tidy Byte Tools

hash-lite

License: MIT Python 3.10+ MCP server Tests

Free tool that hashes text or local files with SHA-256, SHA-1, MD5, and optional SHA-512. You get hex and Base64.

Need it at scale in the cloud? A pay-per-use Apify Actor is in our publish queue and is not public yet. This free local tool is the one you can use today. We will add the Store link here after it goes live.

Plain code, not AI, so the same input always gives the same hashes. Runs on your own computer. MIT license. Works with Python 3.10 and newer, on Windows, Mac and Linux.

Also searched as: ES: hash SHA-256, suma de comprobación / PT: hash SHA-256 / DE: SHA-256 Hash, Prüfsumme / FR: hash SHA-256, somme de contrôle / JA: SHA-256、チェックサム

  • A pay-per-use Apify cloud version is in our publish queue and is not public yet. This free local tool is the one you can use today.

Before and after

Before (text):

hello world

After (SHA-256, SHA-1, and MD5, which are on by default):

sha256: b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
sha1:   2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
md5:    5eb63bbbe01eeed093cb22bb8f5acdc3

Text is hashed as UTF-8 bytes. Local files are hashed as the raw file bytes.

Install

pip install tidy-hash-lite

Or use pipx, which keeps it in its own space:

pipx install tidy-hash-lite

The PyPI name is tidy-hash-lite. The command is still hash-lite (and tidy-hash-lite works too).

Or just download hash_lite.py and run it with python3. That one file uses only Python's standard library. (Installing with pip also adds the mcp package, which the MCP server needs.)

Use it

printf 'hello world' | hash-lite
hash-lite photo.png
hash-lite photo.png --algorithms sha256,sha512
hash-lite photo.png --no-base64
printf 'hello world' | hash-lite --json     # {"ok": true, "bytes": 11, "sha256": "...", ...}

If you pass a file, the raw bytes are hashed. If you pipe text, it is hashed as UTF-8. --algorithms is a comma-separated list from sha256, sha1, md5, and sha512. The default is sha256,sha1,md5.

From Python:

from hash_lite import hash_text
hash_text("hello world")["sha256"]  # 'b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9'

When you run it in a terminal it prints one short line about the Apify version to stderr after the result. It never goes into your JSON output, it only shows when you are looking at a terminal, and --quiet turns it off.

Known limits

  • MD5 and SHA-1 are not safe for new security work. They are included because people still need them for checks. Prefer SHA-256 or SHA-512 when you can.
  • Local files only. This free tool does not fetch file links from the internet. The Apify version does.
  • 5 MB cap in the MCP file tool. The command line will read a larger local file, but very large jobs are a better fit for Apify.
  • It does not look the hash up in a malware list or a password list.

Lite vs Apify

lite (free, this repo) Apify cloud version (not public yet)
Hash text or files yes, on your computer yes, in the cloud
SHA-256, SHA-1, MD5, SHA-512 yes yes
Hex and Base64 yes yes
Fetch file links no yes
Many items in one run you can loop on your own yes, and repeats in the same run are free
MCP server for local AI apps yes use Apify MCP for the cloud tool
Price free $0.001 per unique input. All selected hashes are included

Use it from Claude Desktop or Cursor (MCP)

There is a small free MCP server built in. It gives your AI app two tools. Both only read. They never write or change files, and they never use the internet. It needs uv.

Run it by hand to check it starts (it waits quietly for an app to talk to it):

uvx --from tidy-hash-lite hash-lite mcp

Claude Desktop (claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "hash-lite": {
      "command": "uvx",
      "args": ["--from", "tidy-hash-lite", "hash-lite", "mcp"]
    }
  }
}

uvx --from tidy-hash-lite hash-lite-mcp starts the same server.

Tools:

  • hash_text(text, algorithms=null, include_base64=true): hash UTF-8 text in the chat.
  • hash_file(path, algorithms=null, include_base64=true): hash the raw bytes of a local file, up to 5 MB.

algorithms is a list from sha256, sha1, md5, sha512. The default is sha256, sha1, and md5. Both tools return the hex (and Base64, unless you turn that off) for each selected algorithm.

For AI agents

  • Use when: you need a SHA-256, SHA-1, MD5 or SHA-512 checksum of text or a local file.
  • Don't use when: you need to fetch a file from a URL, look a hash up in a malware list, or the file is bigger than 5 MB in MCP. Use the Apify version for URL and large-file jobs.
  • Input: text on stdin (UTF-8) or a file path (raw bytes). Optional --algorithms sha256,sha1,md5,sha512 and --no-base64.
  • MCP: uvx --from tidy-hash-lite hash-lite mcp gives two read-only tools, hash_text and hash_file.
  • Output: with --json, one object: {"ok": true, "bytes": 11, "sha256": "...", ...}. On error ok is false. Exit code 0 ok, 1 error.
  • Hint lines go to stderr only, and only in a terminal, so stdout is always clean JSON. See also llms.txt.

Tests

pip install "mcp>=1.10,<2"
python3 -m unittest discover tests

The MCP tests are skipped if mcp is not installed.

FAQ

What input does it take? Text on stdin (hashed as UTF-8), or a local file (hashed as raw bytes).

Do my files leave my computer? No. The tool runs on your computer and never uses the internet.

Is MD5 or SHA-1 safe to use for security? No, not for new security work. Prefer SHA-256 or SHA-512. MD5 and SHA-1 are still useful for simple checks.

How is this different from the Apify version? The Apify version runs in the cloud, can fetch file links, and can process many items in one run. This lite tool is free and local.

Does it work with AI apps? Yes. It includes a free MCP server. No API key.

License

MIT. See LICENSE.

Metadata

Release files for tidy-hash-lite 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tidy-hash-lite 1.0.1
File Size Uploaded Provenance Actions
tidy_hash_lite-1.0.1.tar.gz 14.8 kB With provenance Details for tidy_hash_lite-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tidy-hash-lite 1.0.1
File Interpreter ABI Platform Actions
tidy_hash_lite-1.0.1-py3-none-any.whl Python 3 none any Details for tidy_hash_lite-1.0.1-py3-none-any.whl

Total release size: 24.0 kB

Release files / tidy_hash_lite-1.0.1.tar.gz

Download URL tidy_hash_lite-1.0.1.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
57cd15785d9365bf722e7633f1e30311c45446384841b8c39828b66b2c4e39fc
BLAKE2b-256 checksum
How to use checksums
2f658b91298e32dd787d7f99d1368723bdcd7428266233120c67d1d6da16a544
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / tidy_hash_lite-1.0.1-py3-none-any.whl

Download URL tidy_hash_lite-1.0.1-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55564958f9de58dac2d16f0599135ac535a48b17499ea2e00f1951904b82d7d0
BLAKE2b-256 checksum
How to use checksums
e2fd20ec7c0b1a453e643d8b5a8fb3849d5a525afc966b6cccfc84e970a23701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for tidy-hash-lite 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tidy_hash_lite-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page