Spaces:
Sleeping
Sleeping
Update tab/tab1to3_unified.py
Browse files- tab/tab1to3_unified.py +4 -4
tab/tab1to3_unified.py
CHANGED
|
@@ -90,7 +90,7 @@ def get_tab1to3_unified():
|
|
| 90 |
with gr.Row():
|
| 91 |
with gr.Column():
|
| 92 |
gr.Markdown("""<div style="text-align: center;">
|
| 93 |
-
<h4 style="font-size: 22px; color: #
|
| 94 |
<p style="font-size: 16px; color: #cccccc;">Generate a secure quantum key using BB84 protocol.</p>
|
| 95 |
</div>""")
|
| 96 |
key_length = gr.Slider(72, 512, step=8, value=256, label="QKD Key Length (Recommended β₯ 256)")
|
|
@@ -105,7 +105,7 @@ def get_tab1to3_unified():
|
|
| 105 |
with gr.Row():
|
| 106 |
with gr.Column():
|
| 107 |
gr.Markdown("""<div style="text-align: center;">
|
| 108 |
-
<h4 style="font-size: 22px; color: #
|
| 109 |
<p style="font-size: 16px; color: #cccccc;">Encrypt messages using the QKD key with Fernet encryption.</p>
|
| 110 |
</div>""")
|
| 111 |
msg_input = gr.Textbox(label="Message to Encrypt")
|
|
@@ -114,7 +114,7 @@ def get_tab1to3_unified():
|
|
| 114 |
key_used_output = gr.Textbox(label="Fernet Key Used", lines=2)
|
| 115 |
with gr.Column():
|
| 116 |
gr.Markdown("""<div style="text-align: center;">
|
| 117 |
-
<h4 style="font-size: 22px; color: #
|
| 118 |
<p style="font-size: 16px; color: #cccccc;">Generate a QR containing the Fernet key and encrypted message.</p>
|
| 119 |
</div>""")
|
| 120 |
qr_code_output = gr.Image(label="", height=378)
|
|
@@ -123,7 +123,7 @@ def get_tab1to3_unified():
|
|
| 123 |
|
| 124 |
# -------------- QR Upload + Decrypt (Aligned) --------------
|
| 125 |
gr.Markdown("""<div style="text-align: center;">
|
| 126 |
-
<h4 style="font-size: 22px; color: #
|
| 127 |
<p style="font-size: 16px; color: #cccccc;">
|
| 128 |
Upload a QR code <strong>or</strong> manually paste your encrypted message and key.<br>
|
| 129 |
<strong>Our system will decode and decrypt it instantly.</strong>
|
|
|
|
| 90 |
with gr.Row():
|
| 91 |
with gr.Column():
|
| 92 |
gr.Markdown("""<div style="text-align: center;">
|
| 93 |
+
<h4 style="font-size: 22px; color: #a3c14avv;">π QKD Key Generator</h4>
|
| 94 |
<p style="font-size: 16px; color: #cccccc;">Generate a secure quantum key using BB84 protocol.</p>
|
| 95 |
</div>""")
|
| 96 |
key_length = gr.Slider(72, 512, step=8, value=256, label="QKD Key Length (Recommended β₯ 256)")
|
|
|
|
| 105 |
with gr.Row():
|
| 106 |
with gr.Column():
|
| 107 |
gr.Markdown("""<div style="text-align: center;">
|
| 108 |
+
<h4 style="font-size: 22px; color: #a3c14a;">π§ Encrypt Message using QKD</h4>
|
| 109 |
<p style="font-size: 16px; color: #cccccc;">Encrypt messages using the QKD key with Fernet encryption.</p>
|
| 110 |
</div>""")
|
| 111 |
msg_input = gr.Textbox(label="Message to Encrypt")
|
|
|
|
| 114 |
key_used_output = gr.Textbox(label="Fernet Key Used", lines=2)
|
| 115 |
with gr.Column():
|
| 116 |
gr.Markdown("""<div style="text-align: center;">
|
| 117 |
+
<h4 style="font-size: 22px; color: #a3c14a;">π¦ QR Code (Key + Cipher)</h4>
|
| 118 |
<p style="font-size: 16px; color: #cccccc;">Generate a QR containing the Fernet key and encrypted message.</p>
|
| 119 |
</div>""")
|
| 120 |
qr_code_output = gr.Image(label="", height=378)
|
|
|
|
| 123 |
|
| 124 |
# -------------- QR Upload + Decrypt (Aligned) --------------
|
| 125 |
gr.Markdown("""<div style="text-align: center;">
|
| 126 |
+
<h4 style="font-size: 22px; color: #a3c14a;">π Decrypt Securely β Scan or Paste</h4>
|
| 127 |
<p style="font-size: 16px; color: #cccccc;">
|
| 128 |
Upload a QR code <strong>or</strong> manually paste your encrypted message and key.<br>
|
| 129 |
<strong>Our system will decode and decrypt it instantly.</strong>
|