summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2022-08-28 02:32:00 -0400
committercyfraeviolae <cyfraeviolae>2022-08-28 02:32:00 -0400
commitc6d2859dd229d6ad058440feac910b9905a761d7 (patch)
tree884b4aa604841ccc72ce63d10067ef15744193c9 /app.py
parent4ab74d6a630b3a8b74bd1f96f00309d157844c43 (diff)
k1 for ffff, diagrams int ext
Diffstat (limited to 'app.py')
-rw-r--r--app.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/app.py b/app.py
index 06c5f36..cf3ac79 100644
--- a/app.py
+++ b/app.py
@@ -161,9 +161,10 @@ 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()
- return send_file('static/sample-polyglot.enc', mimetype='application/octet-stream', as_attachment=True, download_name="polyglot.enc")
+ 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()