diff options
author | cyfraeviolae <cyfraeviolae> | 2022-08-27 05:49:42 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2022-08-27 05:49:42 -0400 |
commit | 4ab74d6a630b3a8b74bd1f96f00309d157844c43 (patch) | |
tree | 80cb23d451a9870319348808ef230e152da2b43a | |
parent | 08cb6f00747ab7cf5c3b62cc1d71ea9512ee164f (diff) |
cache sample
-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 |