Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
build_error
glibcpy 3.10–3.910 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Yescrypt
✓ from pyescrypt import Yescrypt
✗ from yescrypt import Yescrypt
The package is named pyescrypt, not yescrypt.
Hash and verify a password using yescrypt with default parameters.
from pyescrypt import Yescrypt
yescrypt = Yescrypt()
password = b"correct horse battery staple"
salt = b"unique_salt"
hashed = yescrypt.hash(password, salt)
print("Hashed:", hashed.hex())
verified = yescrypt.verify(password, salt, hashed)
print("Verified:", verified)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'yescrypt'
Importing using the package name instead of the actual module name.
fixUse 'from pyescrypt import Yescrypt' (package is pyescrypt).
AttributeError: 'bytes' object has no attribute 'hex'
Python 3.4 or earlier (hex method added in 3.5).
fixUpgrade to Python 3.5+ or use binascii.hexlify().
cffi.error.CDefError: cannot parse '...'
Missing shared library libyescrypt or incompatible version.
fixInstall libyescrypt from your system package manager (e.g., apt install libyescrypt-dev).
Upgrade
Version history
0.1.0latest on PyPI · released Feb 29, 2024
Audit
Dependencies
cffirequiredC foreign function interface for calling libyescrypt