diff options
author | cyfraeviolae <cyfraeviolae> | 2022-08-28 02:50:49 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2022-08-28 02:50:49 -0400 |
commit | 3a71d6c72837287afe376bbeecc9091d48592b4a (patch) | |
tree | 81f804ac45280e03ffcfbfc145f911ffec1e5f4d | |
parent | 6841c554cbbeb619ac9e1d40bb20da4b707818d2 (diff) |
fix sample
-rw-r--r-- | app.py | 8 | ||||
-rw-r--r-- | static/sample-polyglot.enc | bin | 135808 -> 135984 bytes |
2 files changed, 4 insertions, 4 deletions
@@ -161,10 +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() diff --git a/static/sample-polyglot.enc b/static/sample-polyglot.enc Binary files differindex 58730dd..6885b73 100644 --- a/static/sample-polyglot.enc +++ b/static/sample-polyglot.enc |