Skip to main content

Human-readable hashes using English words

Project description

odhash

Turn any string or bytes into a short, memorable sequence of English words.

import odhash

odhash.hash("hello")
# 'quarantine-cycle-knoll-meatloaf'

odhash.hash("hello", words=2)
# 'quarantine-cycle'

Install

pip install odhash

Usage

odhash.hash(inp, algo=hashlib.sha256, words=4) -> str
  • inp — a str, bytes, or an already-constructed hashlib hash object
  • algo — any hashlib-compatible hash constructor (default: sha256)
  • words — number of words in the output (default: 4)

Each word is selected from a curated list of 16,384 common English words using 2 bytes of the digest.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odhash-0.1.0.tar.gz (626.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odhash-0.1.0-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file odhash-0.1.0.tar.gz.

File metadata

  • Download URL: odhash-0.1.0.tar.gz
  • Upload date:
  • Size: 626.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for odhash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc4a5b25be29e92ba5907083dcb68d30c3653895ec6b870a113c67c1669ae379
MD5 c554e5b2d80c1c6fc345e701dcbe007a
BLAKE2b-256 a425b0bee77584d1b1a8eb4b87bd1ba760fa474cf1b76b770097c8a6b916a22d

See more details on using hashes here.

File details

Details for the file odhash-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: odhash-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for odhash-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42bbe9d236519298d8f00c3fbe2159ef46fe1ac888b8efea2d1605951bdc1c9f
MD5 9e9d0f785798df5f6b063b6ca354903a
BLAKE2b-256 dd5c1d18a6a316f6530d3691b3c4b1f25a669fe97756f0a25e7e12e4b5bfdc43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page