File size: 2,753 Bytes
e1c1802 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | ================================================================================
cryptography - USER GUIDE (Android Python STB) - Generated by RIMI
================================================================================
Package: cryptography
Description: Cryptographic primitives and recipes for Python (static OpenSSL).
Extension: cryptography.pyd
Language: C+CFFI
Dependencies: cffi
================================================================================
1. OVERVIEW
================================================================================
cryptography is the most popular Python library for cryptography. It
provides cryptographic recipes and primitives to developers. This build
uses a statically linked OpenSSL backend for maximum portability on
Android STB devices.
================================================================================
2. INSTALLATION
================================================================================
From Android shell or Termux:
pip install /path/to/cryptography-*.whl
Or from within a build environment:
python -m pip install --no-build-isolation cryptography
================================================================================
3. VERIFICATION
================================================================================
After installation, verify the package loads correctly:
python -c "import cryptography; print('OK')"
Run the pre-built test script (if available):
python Scripts/test_cryptography.py
================================================================================
4. USAGE EXAMPLE
================================================================================
from cryptography.fernet import Fernet
key = Fernet.generate_key()
f = Fernet(key)
token = f.encrypt(b"Secret message")
decrypted = f.decrypt(token)
================================================================================
5. TROUBLESHOOTING
================================================================================
- If import fails with "cannot find shared library" the wheel was not
built with a static linking strategy. Rebuild with the correct
build script.
- cffi must be installed before using this package.
- Ensure OpenSSL was built with all required features enabled.
- Ensure your Android Python STB environment matches the ABI that
the wheel was compiled for (typically arm64_v8a / aarch64).
================================================================================
Generated by RIMI
================================================================================
|