| ================================================================================ | |
| 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 | |
| ================================================================================ | |