summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2022-08-27 05:49:42 -0400
committercyfraeviolae <cyfraeviolae>2022-08-27 05:49:42 -0400
commit4ab74d6a630b3a8b74bd1f96f00309d157844c43 (patch)
tree80cb23d451a9870319348808ef230e152da2b43a /app.py
parent08cb6f00747ab7cf5c3b62cc1d71ea9512ee164f (diff)
cache sample
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.py b/app.py
index f6d11ae..06c5f36 100644
--- a/app.py
+++ b/app.py
@@ -161,8 +161,9 @@ def key_commitment():
if form.is_submitted():
if form.validate():
if form.mode.data == 'sample':
- jpeg_bytes = open('static/axolotl.jpg', 'rb').read()
- bmp_bytes = open('static/kitten.bmp', 'rb').read()
+ # jpeg_bytes = open('static/axolotl.jpg', 'rb').read()
+ # bmp_bytes = open('static/kitten.bmp', 'rb').read()
+ return send_file('static/sample-polyglot.enc', mimetype='application/octet-stream', as_attachment=True, download_name="polyglot.enc")
else:
jpeg_bytes = form.jpeg.data.read()
bmp_bytes = form.bmp.data.read()