diff options
-rw-r--r-- | app.py | 5 | ||||
-rw-r--r-- | static/sample-polyglot.enc | bin | 0 -> 135808 bytes |
2 files changed, 3 insertions, 2 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..58730dd --- /dev/null +++ b/static/sample-polyglot.enc |