quantumshield-proxy 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quantumshield_proxy-1.0.1/PKG-INFO +118 -0
- quantumshield_proxy-1.0.1/README.md +99 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/pyproject.toml +1 -1
- quantumshield_proxy-1.0.1/quantumshield_proxy.egg-info/PKG-INFO +118 -0
- quantumshield_proxy-1.0.0/PKG-INFO +0 -81
- quantumshield_proxy-1.0.0/README.md +0 -62
- quantumshield_proxy-1.0.0/quantumshield_proxy.egg-info/PKG-INFO +0 -81
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/__init__.py +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/__main__.py +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/classical_encryptor.py +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/cli.py +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/pqc_encryptor.py +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/proxy_server.py +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/SOURCES.txt +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/dependency_links.txt +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/entry_points.txt +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/requires.txt +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/top_level.txt +0 -0
- {quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/setup.cfg +0 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: quantumshield-proxy
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Zero-code-change Post-Quantum Cryptography (ML-KEM-768 / Kyber) Reverse Proxy
|
|
5
|
+
Author-email: Hemanth <dev@quantumshield.io>
|
|
6
|
+
Project-URL: Homepage, https://github.com/hemanth/Ccp_QuantumShield
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/hemanth/Ccp_QuantumShield/issues
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
+
Classifier: Topic :: Security :: Cryptography
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Requires-Dist: flask>=3.0.0
|
|
15
|
+
Requires-Dist: flask-cors>=4.0.0
|
|
16
|
+
Requires-Dist: liboqs-python>=0.10.0
|
|
17
|
+
Requires-Dist: cryptography>=42.0.0
|
|
18
|
+
Requires-Dist: requests>=2.31.0
|
|
19
|
+
|
|
20
|
+
# ⚡ QuantumShield PyPI Reverse Proxy (`quantumshield-proxy`)
|
|
21
|
+
|
|
22
|
+
> **Zero-Code-Change Post-Quantum Cryptography (PQC) Security Gateway**
|
|
23
|
+
> Implementing **NIST FIPS 203 (ML-KEM-768 / CRYSTALS-Kyber)** key encapsulation mechanism via Open Quantum Safe (`liboqs`).
|
|
24
|
+
|
|
25
|
+
[](https://pypi.org/project/quantumshield-proxy/)
|
|
26
|
+
[](https://www.python.org/downloads/)
|
|
27
|
+
[](https://opensource.org/licenses/MIT)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 🌟 Overview
|
|
32
|
+
|
|
33
|
+
`quantumshield-proxy` is a high-performance Python reverse proxy that upgrades legacy HTTP web applications and payment APIs to **NIST FIPS 203 (ML-KEM-768)** post-quantum cryptography **without requiring a single line of backend code modification**.
|
|
34
|
+
|
|
35
|
+
It acts as an inline quantum-safe gateway between client traffic and your target web application.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## ⚡ Installation
|
|
40
|
+
|
|
41
|
+
Install via `pip`:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install quantumshield-proxy
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 🚀 Usage Guide
|
|
50
|
+
|
|
51
|
+
### 1. Interactive Setup Wizard (Default)
|
|
52
|
+
|
|
53
|
+
Launch the wizard without flags for step-by-step terminal prompts:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
quantumshield-proxy
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Prompt walkthrough:
|
|
60
|
+
```text
|
|
61
|
+
🌐 QuantumShield PQC Reverse Proxy — Setup Wizard
|
|
62
|
+
─────────────────────────────────────────────────
|
|
63
|
+
Enter target upstream app URL [default: http://localhost:3001]:
|
|
64
|
+
Enter proxy listening port [default: 8443]:
|
|
65
|
+
Select initial protection mode ([1] RSA_ONLY / [2] KYBER_PQC) [default: 2]:
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 2. Command Line Execution (Flags)
|
|
69
|
+
|
|
70
|
+
Run directly with explicit port, target upstream, and protection mode:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
quantumshield-proxy --upstream http://localhost:3001 --port 8443 --mode KYBER_PQC
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## ⚙️ CLI Options
|
|
79
|
+
|
|
80
|
+
| Flag | Short | Default | Description |
|
|
81
|
+
|---|---|---|---|
|
|
82
|
+
| `--port` | `-p` | `8443` | Listening port for the QuantumShield Reverse Proxy |
|
|
83
|
+
| `--upstream` | `-u` | `http://localhost:3001` | Upstream target application URL to forward traffic to |
|
|
84
|
+
| `--mode` | `-m` | `KYBER_PQC` | Protection mode (`KYBER_PQC` or `RSA_ONLY`) |
|
|
85
|
+
| `--help` | `-h` | - | Display help menu and CLI parameters |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 📡 REST API Endpoints
|
|
90
|
+
|
|
91
|
+
The proxy exposes a built-in control plane API on its listening port (`8443` by default):
|
|
92
|
+
|
|
93
|
+
| Method | Endpoint | Description |
|
|
94
|
+
|---|---|---|
|
|
95
|
+
| `GET` | `/api/proxy/status` | Current proxy state, active algorithm, and uptime |
|
|
96
|
+
| `POST` | `/api/proxy/activate` | Dynamically toggle protection mode (`KYBER_PQC` ↔ `RSA_ONLY`) |
|
|
97
|
+
| `GET` | `/api/proxy/pubkey` | Fetch ML-KEM-768 Public Key (1184-byte hex) |
|
|
98
|
+
| `POST` | `/api/proxy/pay/kyber` | Decapsulate ML-KEM-768 ciphertext, decrypt payload & forward to upstream |
|
|
99
|
+
| `POST` | `/proxy/pay` | Legacy RSA payment endpoint (intercepted & logged in vault) |
|
|
100
|
+
| `GET` | `/api/proxy/vault` | Intercepted transaction vault records |
|
|
101
|
+
| `POST` | `/api/proxy/vault/clear` | Reset harvest vault |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 🔒 Cryptographic Specifications
|
|
106
|
+
|
|
107
|
+
- **Standard**: NIST FIPS 203 (ML-KEM-768)
|
|
108
|
+
- **Library**: Open Quantum Safe (`liboqs` C-bindings)
|
|
109
|
+
- **Security Level**: Category 3 (Equivalent to AES-192 against Quantum Attackers)
|
|
110
|
+
- **Public Key Size**: 1,184 Bytes
|
|
111
|
+
- **Ciphertext Size**: 1,088 Bytes
|
|
112
|
+
- **Secret Key Size**: 2,400 Bytes
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 📄 License
|
|
117
|
+
|
|
118
|
+
MIT © [QuantumShield](https://github.com/hemanth/Ccp_QuantumShield)
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# ⚡ QuantumShield PyPI Reverse Proxy (`quantumshield-proxy`)
|
|
2
|
+
|
|
3
|
+
> **Zero-Code-Change Post-Quantum Cryptography (PQC) Security Gateway**
|
|
4
|
+
> Implementing **NIST FIPS 203 (ML-KEM-768 / CRYSTALS-Kyber)** key encapsulation mechanism via Open Quantum Safe (`liboqs`).
|
|
5
|
+
|
|
6
|
+
[](https://pypi.org/project/quantumshield-proxy/)
|
|
7
|
+
[](https://www.python.org/downloads/)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🌟 Overview
|
|
13
|
+
|
|
14
|
+
`quantumshield-proxy` is a high-performance Python reverse proxy that upgrades legacy HTTP web applications and payment APIs to **NIST FIPS 203 (ML-KEM-768)** post-quantum cryptography **without requiring a single line of backend code modification**.
|
|
15
|
+
|
|
16
|
+
It acts as an inline quantum-safe gateway between client traffic and your target web application.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## ⚡ Installation
|
|
21
|
+
|
|
22
|
+
Install via `pip`:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install quantumshield-proxy
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 🚀 Usage Guide
|
|
31
|
+
|
|
32
|
+
### 1. Interactive Setup Wizard (Default)
|
|
33
|
+
|
|
34
|
+
Launch the wizard without flags for step-by-step terminal prompts:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
quantumshield-proxy
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Prompt walkthrough:
|
|
41
|
+
```text
|
|
42
|
+
🌐 QuantumShield PQC Reverse Proxy — Setup Wizard
|
|
43
|
+
─────────────────────────────────────────────────
|
|
44
|
+
Enter target upstream app URL [default: http://localhost:3001]:
|
|
45
|
+
Enter proxy listening port [default: 8443]:
|
|
46
|
+
Select initial protection mode ([1] RSA_ONLY / [2] KYBER_PQC) [default: 2]:
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 2. Command Line Execution (Flags)
|
|
50
|
+
|
|
51
|
+
Run directly with explicit port, target upstream, and protection mode:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
quantumshield-proxy --upstream http://localhost:3001 --port 8443 --mode KYBER_PQC
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## ⚙️ CLI Options
|
|
60
|
+
|
|
61
|
+
| Flag | Short | Default | Description |
|
|
62
|
+
|---|---|---|---|
|
|
63
|
+
| `--port` | `-p` | `8443` | Listening port for the QuantumShield Reverse Proxy |
|
|
64
|
+
| `--upstream` | `-u` | `http://localhost:3001` | Upstream target application URL to forward traffic to |
|
|
65
|
+
| `--mode` | `-m` | `KYBER_PQC` | Protection mode (`KYBER_PQC` or `RSA_ONLY`) |
|
|
66
|
+
| `--help` | `-h` | - | Display help menu and CLI parameters |
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 📡 REST API Endpoints
|
|
71
|
+
|
|
72
|
+
The proxy exposes a built-in control plane API on its listening port (`8443` by default):
|
|
73
|
+
|
|
74
|
+
| Method | Endpoint | Description |
|
|
75
|
+
|---|---|---|
|
|
76
|
+
| `GET` | `/api/proxy/status` | Current proxy state, active algorithm, and uptime |
|
|
77
|
+
| `POST` | `/api/proxy/activate` | Dynamically toggle protection mode (`KYBER_PQC` ↔ `RSA_ONLY`) |
|
|
78
|
+
| `GET` | `/api/proxy/pubkey` | Fetch ML-KEM-768 Public Key (1184-byte hex) |
|
|
79
|
+
| `POST` | `/api/proxy/pay/kyber` | Decapsulate ML-KEM-768 ciphertext, decrypt payload & forward to upstream |
|
|
80
|
+
| `POST` | `/proxy/pay` | Legacy RSA payment endpoint (intercepted & logged in vault) |
|
|
81
|
+
| `GET` | `/api/proxy/vault` | Intercepted transaction vault records |
|
|
82
|
+
| `POST` | `/api/proxy/vault/clear` | Reset harvest vault |
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 🔒 Cryptographic Specifications
|
|
87
|
+
|
|
88
|
+
- **Standard**: NIST FIPS 203 (ML-KEM-768)
|
|
89
|
+
- **Library**: Open Quantum Safe (`liboqs` C-bindings)
|
|
90
|
+
- **Security Level**: Category 3 (Equivalent to AES-192 against Quantum Attackers)
|
|
91
|
+
- **Public Key Size**: 1,184 Bytes
|
|
92
|
+
- **Ciphertext Size**: 1,088 Bytes
|
|
93
|
+
- **Secret Key Size**: 2,400 Bytes
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 📄 License
|
|
98
|
+
|
|
99
|
+
MIT © [QuantumShield](https://github.com/hemanth/Ccp_QuantumShield)
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: quantumshield-proxy
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Zero-code-change Post-Quantum Cryptography (ML-KEM-768 / Kyber) Reverse Proxy
|
|
5
|
+
Author-email: Hemanth <dev@quantumshield.io>
|
|
6
|
+
Project-URL: Homepage, https://github.com/hemanth/Ccp_QuantumShield
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/hemanth/Ccp_QuantumShield/issues
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
+
Classifier: Topic :: Security :: Cryptography
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Requires-Dist: flask>=3.0.0
|
|
15
|
+
Requires-Dist: flask-cors>=4.0.0
|
|
16
|
+
Requires-Dist: liboqs-python>=0.10.0
|
|
17
|
+
Requires-Dist: cryptography>=42.0.0
|
|
18
|
+
Requires-Dist: requests>=2.31.0
|
|
19
|
+
|
|
20
|
+
# ⚡ QuantumShield PyPI Reverse Proxy (`quantumshield-proxy`)
|
|
21
|
+
|
|
22
|
+
> **Zero-Code-Change Post-Quantum Cryptography (PQC) Security Gateway**
|
|
23
|
+
> Implementing **NIST FIPS 203 (ML-KEM-768 / CRYSTALS-Kyber)** key encapsulation mechanism via Open Quantum Safe (`liboqs`).
|
|
24
|
+
|
|
25
|
+
[](https://pypi.org/project/quantumshield-proxy/)
|
|
26
|
+
[](https://www.python.org/downloads/)
|
|
27
|
+
[](https://opensource.org/licenses/MIT)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 🌟 Overview
|
|
32
|
+
|
|
33
|
+
`quantumshield-proxy` is a high-performance Python reverse proxy that upgrades legacy HTTP web applications and payment APIs to **NIST FIPS 203 (ML-KEM-768)** post-quantum cryptography **without requiring a single line of backend code modification**.
|
|
34
|
+
|
|
35
|
+
It acts as an inline quantum-safe gateway between client traffic and your target web application.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## ⚡ Installation
|
|
40
|
+
|
|
41
|
+
Install via `pip`:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install quantumshield-proxy
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 🚀 Usage Guide
|
|
50
|
+
|
|
51
|
+
### 1. Interactive Setup Wizard (Default)
|
|
52
|
+
|
|
53
|
+
Launch the wizard without flags for step-by-step terminal prompts:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
quantumshield-proxy
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Prompt walkthrough:
|
|
60
|
+
```text
|
|
61
|
+
🌐 QuantumShield PQC Reverse Proxy — Setup Wizard
|
|
62
|
+
─────────────────────────────────────────────────
|
|
63
|
+
Enter target upstream app URL [default: http://localhost:3001]:
|
|
64
|
+
Enter proxy listening port [default: 8443]:
|
|
65
|
+
Select initial protection mode ([1] RSA_ONLY / [2] KYBER_PQC) [default: 2]:
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 2. Command Line Execution (Flags)
|
|
69
|
+
|
|
70
|
+
Run directly with explicit port, target upstream, and protection mode:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
quantumshield-proxy --upstream http://localhost:3001 --port 8443 --mode KYBER_PQC
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## ⚙️ CLI Options
|
|
79
|
+
|
|
80
|
+
| Flag | Short | Default | Description |
|
|
81
|
+
|---|---|---|---|
|
|
82
|
+
| `--port` | `-p` | `8443` | Listening port for the QuantumShield Reverse Proxy |
|
|
83
|
+
| `--upstream` | `-u` | `http://localhost:3001` | Upstream target application URL to forward traffic to |
|
|
84
|
+
| `--mode` | `-m` | `KYBER_PQC` | Protection mode (`KYBER_PQC` or `RSA_ONLY`) |
|
|
85
|
+
| `--help` | `-h` | - | Display help menu and CLI parameters |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 📡 REST API Endpoints
|
|
90
|
+
|
|
91
|
+
The proxy exposes a built-in control plane API on its listening port (`8443` by default):
|
|
92
|
+
|
|
93
|
+
| Method | Endpoint | Description |
|
|
94
|
+
|---|---|---|
|
|
95
|
+
| `GET` | `/api/proxy/status` | Current proxy state, active algorithm, and uptime |
|
|
96
|
+
| `POST` | `/api/proxy/activate` | Dynamically toggle protection mode (`KYBER_PQC` ↔ `RSA_ONLY`) |
|
|
97
|
+
| `GET` | `/api/proxy/pubkey` | Fetch ML-KEM-768 Public Key (1184-byte hex) |
|
|
98
|
+
| `POST` | `/api/proxy/pay/kyber` | Decapsulate ML-KEM-768 ciphertext, decrypt payload & forward to upstream |
|
|
99
|
+
| `POST` | `/proxy/pay` | Legacy RSA payment endpoint (intercepted & logged in vault) |
|
|
100
|
+
| `GET` | `/api/proxy/vault` | Intercepted transaction vault records |
|
|
101
|
+
| `POST` | `/api/proxy/vault/clear` | Reset harvest vault |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 🔒 Cryptographic Specifications
|
|
106
|
+
|
|
107
|
+
- **Standard**: NIST FIPS 203 (ML-KEM-768)
|
|
108
|
+
- **Library**: Open Quantum Safe (`liboqs` C-bindings)
|
|
109
|
+
- **Security Level**: Category 3 (Equivalent to AES-192 against Quantum Attackers)
|
|
110
|
+
- **Public Key Size**: 1,184 Bytes
|
|
111
|
+
- **Ciphertext Size**: 1,088 Bytes
|
|
112
|
+
- **Secret Key Size**: 2,400 Bytes
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 📄 License
|
|
117
|
+
|
|
118
|
+
MIT © [QuantumShield](https://github.com/hemanth/Ccp_QuantumShield)
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: quantumshield-proxy
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: Zero-code-change Post-Quantum Cryptography (ML-KEM-768 / Kyber) Reverse Proxy
|
|
5
|
-
Author-email: Hemanth <dev@quantumshield.io>
|
|
6
|
-
Project-URL: Homepage, https://github.com/hemanth/Ccp_QuantumShield
|
|
7
|
-
Project-URL: Bug Tracker, https://github.com/hemanth/Ccp_QuantumShield/issues
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
-
Classifier: Topic :: Security :: Cryptography
|
|
12
|
-
Requires-Python: >=3.9
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
Requires-Dist: flask>=3.0.0
|
|
15
|
-
Requires-Dist: flask-cors>=4.0.0
|
|
16
|
-
Requires-Dist: liboqs-python>=0.10.0
|
|
17
|
-
Requires-Dist: cryptography>=42.0.0
|
|
18
|
-
Requires-Dist: requests>=2.31.0
|
|
19
|
-
|
|
20
|
-
# QuantumShield — Backend
|
|
21
|
-
|
|
22
|
-
Python Flask backend for the QuantumShield post-quantum cryptography demo.
|
|
23
|
-
|
|
24
|
-
## Structure
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
backend/
|
|
28
|
-
├── app.py # Flask entry point — all routes
|
|
29
|
-
├── classical_encryptor.py # RSA-2048 encrypt/decrypt + timing
|
|
30
|
-
├── pqc_encryptor.py # CRYSTALS-Kyber-768 via liboqs + timing
|
|
31
|
-
├── quantum_simulator.py # Shor's Algorithm simulation
|
|
32
|
-
├── benchmark_engine.py # 1000 transaction benchmarking
|
|
33
|
-
├── vulnerability_scanner.py # Algorithm risk classification
|
|
34
|
-
├── migration_wizard.py # 5-step migration plan + PDF export
|
|
35
|
-
├── transaction_factory.py # Synthetic dataset loader
|
|
36
|
-
├── data/
|
|
37
|
-
│ └── mock_transactions.json # 1000 synthetic UPI transactions
|
|
38
|
-
├── requirements.txt
|
|
39
|
-
├── .env.example
|
|
40
|
-
└── .gitignore
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Setup
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
pip install -r requirements.txt
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Run
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
python app.py
|
|
53
|
-
# Flask running on http://localhost:5000
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## API Endpoints
|
|
57
|
-
|
|
58
|
-
| Method | Endpoint | Description |
|
|
59
|
-
|--------|-----------------------|------------------------------------|
|
|
60
|
-
| GET | /api/health | Health check |
|
|
61
|
-
| POST | /api/encrypt/rsa | Encrypt with RSA-2048 |
|
|
62
|
-
| POST | /api/encrypt/kyber | Encapsulate with Kyber-768 |
|
|
63
|
-
| POST | /api/gateway/pay | Full payment gateway simulation |
|
|
64
|
-
| GET | /api/attack/rsa | Shor's attack on RSA |
|
|
65
|
-
| GET | /api/attack/kyber | Shor's attack on Kyber |
|
|
66
|
-
| GET | /api/benchmark?n=100 | Run N transaction benchmark |
|
|
67
|
-
| POST | /api/scan | Vulnerability scan an algorithm |
|
|
68
|
-
| POST | /api/migrate | Generate 5-step migration plan |
|
|
69
|
-
| POST | /api/report | Download PDF migration report |
|
|
70
|
-
|
|
71
|
-
## Test individually
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
python transaction_factory.py # M1
|
|
75
|
-
python classical_encryptor.py # M3
|
|
76
|
-
python pqc_encryptor.py # M4
|
|
77
|
-
python quantum_simulator.py # M5
|
|
78
|
-
python vulnerability_scanner.py # M8a
|
|
79
|
-
python migration_wizard.py # M8b
|
|
80
|
-
python benchmark_engine.py # M9
|
|
81
|
-
```
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# QuantumShield — Backend
|
|
2
|
-
|
|
3
|
-
Python Flask backend for the QuantumShield post-quantum cryptography demo.
|
|
4
|
-
|
|
5
|
-
## Structure
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
backend/
|
|
9
|
-
├── app.py # Flask entry point — all routes
|
|
10
|
-
├── classical_encryptor.py # RSA-2048 encrypt/decrypt + timing
|
|
11
|
-
├── pqc_encryptor.py # CRYSTALS-Kyber-768 via liboqs + timing
|
|
12
|
-
├── quantum_simulator.py # Shor's Algorithm simulation
|
|
13
|
-
├── benchmark_engine.py # 1000 transaction benchmarking
|
|
14
|
-
├── vulnerability_scanner.py # Algorithm risk classification
|
|
15
|
-
├── migration_wizard.py # 5-step migration plan + PDF export
|
|
16
|
-
├── transaction_factory.py # Synthetic dataset loader
|
|
17
|
-
├── data/
|
|
18
|
-
│ └── mock_transactions.json # 1000 synthetic UPI transactions
|
|
19
|
-
├── requirements.txt
|
|
20
|
-
├── .env.example
|
|
21
|
-
└── .gitignore
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Setup
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
pip install -r requirements.txt
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Run
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
python app.py
|
|
34
|
-
# Flask running on http://localhost:5000
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## API Endpoints
|
|
38
|
-
|
|
39
|
-
| Method | Endpoint | Description |
|
|
40
|
-
|--------|-----------------------|------------------------------------|
|
|
41
|
-
| GET | /api/health | Health check |
|
|
42
|
-
| POST | /api/encrypt/rsa | Encrypt with RSA-2048 |
|
|
43
|
-
| POST | /api/encrypt/kyber | Encapsulate with Kyber-768 |
|
|
44
|
-
| POST | /api/gateway/pay | Full payment gateway simulation |
|
|
45
|
-
| GET | /api/attack/rsa | Shor's attack on RSA |
|
|
46
|
-
| GET | /api/attack/kyber | Shor's attack on Kyber |
|
|
47
|
-
| GET | /api/benchmark?n=100 | Run N transaction benchmark |
|
|
48
|
-
| POST | /api/scan | Vulnerability scan an algorithm |
|
|
49
|
-
| POST | /api/migrate | Generate 5-step migration plan |
|
|
50
|
-
| POST | /api/report | Download PDF migration report |
|
|
51
|
-
|
|
52
|
-
## Test individually
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
python transaction_factory.py # M1
|
|
56
|
-
python classical_encryptor.py # M3
|
|
57
|
-
python pqc_encryptor.py # M4
|
|
58
|
-
python quantum_simulator.py # M5
|
|
59
|
-
python vulnerability_scanner.py # M8a
|
|
60
|
-
python migration_wizard.py # M8b
|
|
61
|
-
python benchmark_engine.py # M9
|
|
62
|
-
```
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: quantumshield-proxy
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: Zero-code-change Post-Quantum Cryptography (ML-KEM-768 / Kyber) Reverse Proxy
|
|
5
|
-
Author-email: Hemanth <dev@quantumshield.io>
|
|
6
|
-
Project-URL: Homepage, https://github.com/hemanth/Ccp_QuantumShield
|
|
7
|
-
Project-URL: Bug Tracker, https://github.com/hemanth/Ccp_QuantumShield/issues
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
-
Classifier: Topic :: Security :: Cryptography
|
|
12
|
-
Requires-Python: >=3.9
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
Requires-Dist: flask>=3.0.0
|
|
15
|
-
Requires-Dist: flask-cors>=4.0.0
|
|
16
|
-
Requires-Dist: liboqs-python>=0.10.0
|
|
17
|
-
Requires-Dist: cryptography>=42.0.0
|
|
18
|
-
Requires-Dist: requests>=2.31.0
|
|
19
|
-
|
|
20
|
-
# QuantumShield — Backend
|
|
21
|
-
|
|
22
|
-
Python Flask backend for the QuantumShield post-quantum cryptography demo.
|
|
23
|
-
|
|
24
|
-
## Structure
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
backend/
|
|
28
|
-
├── app.py # Flask entry point — all routes
|
|
29
|
-
├── classical_encryptor.py # RSA-2048 encrypt/decrypt + timing
|
|
30
|
-
├── pqc_encryptor.py # CRYSTALS-Kyber-768 via liboqs + timing
|
|
31
|
-
├── quantum_simulator.py # Shor's Algorithm simulation
|
|
32
|
-
├── benchmark_engine.py # 1000 transaction benchmarking
|
|
33
|
-
├── vulnerability_scanner.py # Algorithm risk classification
|
|
34
|
-
├── migration_wizard.py # 5-step migration plan + PDF export
|
|
35
|
-
├── transaction_factory.py # Synthetic dataset loader
|
|
36
|
-
├── data/
|
|
37
|
-
│ └── mock_transactions.json # 1000 synthetic UPI transactions
|
|
38
|
-
├── requirements.txt
|
|
39
|
-
├── .env.example
|
|
40
|
-
└── .gitignore
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Setup
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
pip install -r requirements.txt
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Run
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
python app.py
|
|
53
|
-
# Flask running on http://localhost:5000
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## API Endpoints
|
|
57
|
-
|
|
58
|
-
| Method | Endpoint | Description |
|
|
59
|
-
|--------|-----------------------|------------------------------------|
|
|
60
|
-
| GET | /api/health | Health check |
|
|
61
|
-
| POST | /api/encrypt/rsa | Encrypt with RSA-2048 |
|
|
62
|
-
| POST | /api/encrypt/kyber | Encapsulate with Kyber-768 |
|
|
63
|
-
| POST | /api/gateway/pay | Full payment gateway simulation |
|
|
64
|
-
| GET | /api/attack/rsa | Shor's attack on RSA |
|
|
65
|
-
| GET | /api/attack/kyber | Shor's attack on Kyber |
|
|
66
|
-
| GET | /api/benchmark?n=100 | Run N transaction benchmark |
|
|
67
|
-
| POST | /api/scan | Vulnerability scan an algorithm |
|
|
68
|
-
| POST | /api/migrate | Generate 5-step migration plan |
|
|
69
|
-
| POST | /api/report | Download PDF migration report |
|
|
70
|
-
|
|
71
|
-
## Test individually
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
python transaction_factory.py # M1
|
|
75
|
-
python classical_encryptor.py # M3
|
|
76
|
-
python pqc_encryptor.py # M4
|
|
77
|
-
python quantum_simulator.py # M5
|
|
78
|
-
python vulnerability_scanner.py # M8a
|
|
79
|
-
python migration_wizard.py # M8b
|
|
80
|
-
python benchmark_engine.py # M9
|
|
81
|
-
```
|
|
File without changes
|
|
File without changes
|
{quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/classical_encryptor.py
RENAMED
|
File without changes
|
|
File without changes
|
{quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy/pqc_encryptor.py
RENAMED
|
File without changes
|
|
File without changes
|
{quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/requires.txt
RENAMED
|
File without changes
|
{quantumshield_proxy-1.0.0 → quantumshield_proxy-1.0.1}/quantumshield_proxy.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|