BLAKE3 加密哈希函数的 Python 绑定
Python bindings for the official Rust implementation of
BLAKE3, based on
PyO3. These bindings expose all the features of
BLAKE3, including extendable output, keying, and multithreading. The basic API
matches that of Python's standard
hashlib module.
…The blake3 package is installable from PyPI like most other Python packages.
For folks using a package manager like uv,
that's:
uv add blake3Or the "old school" way:
pip install blake3This package uses the Rust implementation of BLAKE3 internally. There are binary wheels available on PyPI for most environments, so most users don't need a Rust compiler. But if you're building the source distribution, or if a binary wheel isn't available for your environment, you'll need to install the Rust toolchain first.
Experimental bindings for the official BLAKE3 C implementation are available in
the c_impl directory. These will probably not be published on PyPI,
and most applications should prefer the Rust-based bindings. But if you can't
depend on the Rust toolchain, and you're on some platform that this project
doesn't provide binary wheels for, the C-based bindings might be an
alternative.
暂无开放 Issues,或尚未同步最近议题。