From 5891285493fbb2b070e544945c68cb145758c6eb Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Sun, 4 Jan 2026 20:49:11 -0500 Subject: [PATCH] Fix missing hashlib import in download route --- frontends/web/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frontends/web/app.py b/frontends/web/app.py index df1cc2c..d8644c2 100644 --- a/frontends/web/app.py +++ b/frontends/web/app.py @@ -1101,6 +1101,7 @@ def encode_download(file_id): file_info = TEMP_FILES[file_id] mime_type = file_info.get("mime_type", "image/png") + import hashlib download_hash = hashlib.md5(file_info["data"]).hexdigest()[:8] print(f"[DOWNLOAD] stego: {len(file_info['data'])} bytes, md5: {download_hash}", file=sys.stderr)