summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.py5
-rw-r--r--static/sample-polyglot.encbin0 -> 135808 bytes
2 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()
diff --git a/static/sample-polyglot.enc b/static/sample-polyglot.enc
new file mode 100644
index 0000000..58730dd
--- /dev/null
+++ b/static/sample-polyglot.enc
Binary files differ