PythonSTB commited on
Commit
518c957
·
verified ·
1 Parent(s): ddc2144

Delete cryptography/cryptography_USER_GUIDE.txt

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