Spaces:
Paused
Paused
Keep key/message images lossless (PNG)
Browse files
app.py
CHANGED
|
@@ -120,21 +120,21 @@ with gr.Blocks() as app:
|
|
| 120 |
with gr.Tab("Gen Wal"):
|
| 121 |
gen_wal_btn=gr.Button("Generate Wallet")
|
| 122 |
seed = gr.Textbox(label='Seed Phrase')
|
| 123 |
-
img1=gr.Image(type='pil', label='Private Key')
|
| 124 |
out1 = gr.Textbox(label='Private Key',max_lines=4)
|
| 125 |
-
img2=gr.Image(type='pil', label='Public Key')
|
| 126 |
out2 = gr.Textbox(label='Public Key',max_lines=4)
|
| 127 |
-
img3=gr.Image(type='pil', label='Address')
|
| 128 |
out3 = gr.Textbox(label='Address')
|
| 129 |
with gr.Tab("Encrypt"):
|
| 130 |
rsa_to_enc = gr.Textbox(label="txt to encrypt")
|
| 131 |
-
pub_key_in = gr.Image(label="Public Key", type="filepath")
|
| 132 |
rsa_enc_btn = gr.Button("RSA Encrypt")
|
| 133 |
rsa_enc_mes = gr.Textbox(label="encoded", max_lines=4)
|
| 134 |
-
qr_enc_mes = gr.Image(type="filepath")
|
| 135 |
with gr.Tab("Decrypt"):
|
| 136 |
-
mes_in = gr.Image(label="Message", type="filepath")
|
| 137 |
-
priv_key_in = gr.Image(label="Private Key", type="filepath")
|
| 138 |
rsa_dec_btn = gr.Button("RSA Decrypt")
|
| 139 |
rsa_dec_mes = gr.Textbox(label="decoded")
|
| 140 |
gr.Column()
|
|
|
|
| 120 |
with gr.Tab("Gen Wal"):
|
| 121 |
gen_wal_btn=gr.Button("Generate Wallet")
|
| 122 |
seed = gr.Textbox(label='Seed Phrase')
|
| 123 |
+
img1=gr.Image(type='pil', format='png', label='Private Key')
|
| 124 |
out1 = gr.Textbox(label='Private Key',max_lines=4)
|
| 125 |
+
img2=gr.Image(type='pil', format='png', label='Public Key')
|
| 126 |
out2 = gr.Textbox(label='Public Key',max_lines=4)
|
| 127 |
+
img3=gr.Image(type='pil', format='png', label='Address')
|
| 128 |
out3 = gr.Textbox(label='Address')
|
| 129 |
with gr.Tab("Encrypt"):
|
| 130 |
rsa_to_enc = gr.Textbox(label="txt to encrypt")
|
| 131 |
+
pub_key_in = gr.Image(label="Public Key", type="filepath", format="png")
|
| 132 |
rsa_enc_btn = gr.Button("RSA Encrypt")
|
| 133 |
rsa_enc_mes = gr.Textbox(label="encoded", max_lines=4)
|
| 134 |
+
qr_enc_mes = gr.Image(type="filepath", format="png")
|
| 135 |
with gr.Tab("Decrypt"):
|
| 136 |
+
mes_in = gr.Image(label="Message", type="filepath", format="png")
|
| 137 |
+
priv_key_in = gr.Image(label="Private Key", type="filepath", format="png")
|
| 138 |
rsa_dec_btn = gr.Button("RSA Decrypt")
|
| 139 |
rsa_dec_mes = gr.Textbox(label="decoded")
|
| 140 |
gr.Column()
|