Skip to main content

Pure Python implementations of common hashing algorithms.

Project description

PureHash

Pure Python implementations of common hashing algorithms.

Installation

pip install purehash

Usage

Usage is similar to that of hashlib, for example:

import purehash

m = purehash.md5(b"The quick brown fox ")
m.update(b"jumps over the lazy dog.")
m.digest()  # b"\xe4\xd9\t\xc2\x90\xd0\xfb\x1c\xa0h\xff\xad\xdf"\xcb\xd0"
m.hexdigest()  # "e4d909c290d0fb1ca068ffaddf22cbd0"

Supported Hash Algorithms

  • MD5 (md5)
  • SHA-1 (sha1)
  • SHA-256 (sha256)
  • SHA-512 (sha512)

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

purehash-1.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

purehash-1.0.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file purehash-1.0.0.tar.gz.

File metadata

  • Download URL: purehash-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for purehash-1.0.0.tar.gz
Algorithm Hash digest
SHA256 98845a0c6e0d1c7c7d640bd2f3ec89789e26b6aa004ada5bc6e9fa90e8a15b44
MD5 6a5f7e2a0a6225c47ffbeaccac1fb8fe
BLAKE2b-256 6557c32ad9656bf2f5d4ed22b75343f1782125ef60f3fc2a86b33468e2232b69

See more details on using hashes here.

File details

Details for the file purehash-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: purehash-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for purehash-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1284166c852c824a40335e20fa616e0558fbf77e7c3f57a9fde4f99dc5df30d2
MD5 35a5aaac128af92955b047e1cb22f3ec
BLAKE2b-256 e68e94da8f9c58e363e23c85f8ed99a8e96ffce65d186df5746d94778c9aff89

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