Skip to main content

SHA-py

Using SHA-3 and Keccak cryptographic algorithms based on Rust crate sha3

For fun. To be improved

Installation

pip install sha_rs

Usage

from sha_rs import sha3_224, sha3_256, sha3_384, sha3_512
from sha_rs import keccak_224, keccak_256, keccak_384, keccak_512


# Keccak
assert keccak_224(b"hello") == "45524ec454bcc7d4b8f74350c4a4e62809fcb49bc29df62e61b69fa4"
assert keccak_256(b"hello") == "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
assert keccak_384(b"hello") == "dcef6fb7908fd52ba26aaba75121526abbf1217f1c0a31024652d134d3e32fb4cd8e9c703b8f43e7277b59a5cd402175"
assert keccak_512(b"hello") == "52fa80662e64c128f8389c9ea6c73d4c02368004bf4463491900d11aaadca39d47de1b01361f207c512cfa79f0f92c3395c67ff7928e3f5ce3e3c852b392f976"

# Sha3
assert sha3_224(b"hello") == "b87f88c72702fff1748e58b87e9141a42c0dbedc29a78cb0d4a5cd81"
assert sha3_256(b"hello") == "3338be694f50c5f338814986cdf0686453a888b84f424d792af4b9202398f392"
assert sha3_384(b"hello") == "720aea11019ef06440fbf05d87aa24680a2153df3907b23631e7177ce620fa1330ff07c0fddee54699a4c3ee0ee9d887"
assert sha3_512(b"hello") == "75d527c368f2efe848ecf6b073a36767800805e9eef2b1857d5f984f036eb6df891d75f72d9b154518c1cd58835286d1da9a38deba3de98b5a53e5ed78a84976"

Metadata

Release files for sha-rs 1.0.0

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

Source distribution (sdist)

Source distribution for sha-rs 1.0.0
File Size Uploaded Provenance Actions
sha_rs-1.0.0.tar.gz 5.6 kB Without provenance Details for sha_rs-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sha-rs 1.0.0
File Interpreter ABI Platform Actions
sha_rs-1.0.0-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for sha_rs-1.0.0-cp310-cp310-manylinux_2_28_aarch64.whl

Total release size: 180.4 kB

Release files / sha_rs-1.0.0.tar.gz

Download URL sha_rs-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
32ef2719526c58f36fb7a334138bea73242efdae9309a3ef21e66a54508fdd69
BLAKE2b-256 checksum
How to use checksums
0543d984f28aac4351276b82a3f8c0f63e5526975cbec8f72bbe8fd8df57cdcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.14.12

Release files / sha_rs-1.0.0-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL sha_rs-1.0.0-cp310-cp310-manylinux_2_28_aarch64.whl
Size 174.7 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
7de25cf15563f7a067cb9e2058cd17f01aa97825769dac9016a01a271cb32870
BLAKE2b-256 checksum
How to use checksums
89b0069171223cb8cf4a91a0700d248db685fab8f46e825642536918dbc0a46c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.14.12

Security for sha-rs 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.0 This release

2 release files No 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