From c784140cdedc83be6e276bb8f32153db7fe73281 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Mon, 29 Dec 2025 18:16:10 -0500 Subject: [PATCH] 2.1.4 - Manual code cleanup stuff, version configued in 1ish place, etc. --- frontends/web/app.py | 5 +- frontends/web/templates/about.html | 4 +- frontends/web/templates/base.html | 2 +- frontends/web/templates/decode.html | 11 +- frontends/web/templates/decode.html_20251229 | 372 +++++++++++++++++++ frontends/web/templates/encode.html | 28 +- src/stegasoo/constants.py | 3 +- 7 files changed, 402 insertions(+), 23 deletions(-) create mode 100644 frontends/web/templates/decode.html_20251229 diff --git a/frontends/web/app.py b/frontends/web/app.py index 01a9b5b..4f62f3c 100644 --- a/frontends/web/app.py +++ b/frontends/web/app.py @@ -39,7 +39,7 @@ from stegasoo import ( ) from stegasoo.constants import ( MAX_MESSAGE_SIZE, MIN_PIN_LENGTH, MAX_PIN_LENGTH, - VALID_RSA_SIZES, MAX_FILE_SIZE, + VALID_RSA_SIZES, MAX_FILE_SIZE, STEGASOO_VERSION ) # QR Code support @@ -754,7 +754,8 @@ def about(): return render_template('about.html', has_argon2=has_argon2(), has_qrcode_read=HAS_QRCODE_READ, - max_payload_kb=MAX_FILE_PAYLOAD_SIZE // 1024 + max_payload_kb=MAX_FILE_PAYLOAD_SIZE // 1024, + stegasoo_version=STEGASOO_VERSION ) diff --git a/frontends/web/templates/about.html b/frontends/web/templates/about.html index dee25e2..528048a 100644 --- a/frontends/web/templates/about.html +++ b/frontends/web/templates/about.html @@ -440,7 +440,7 @@ stegasoo info image.png Phrase length - 3-12 words (BIP-39 wordlist) + 3-12 words (BIP-39 wordlist) API documentation @@ -457,7 +457,7 @@ stegasoo info image.png

- Stegasoo v2.1.3 • + Stegasoo v{{ stegasoo_version }} • Open Source • Built with Python, FastAPI, and cryptography

diff --git a/frontends/web/templates/base.html b/frontends/web/templates/base.html index e409b44..d5d3d52 100644 --- a/frontends/web/templates/base.html +++ b/frontends/web/templates/base.html @@ -63,7 +63,7 @@
- Stegasoo v2.1.3 — Steganography using "Reference Photo Hashing + Day-Phrase + PIN/Key". + Stegasoo v{{__version__}} — Steganography using "Reference Photo Hashing + Day-Phrase + PIN/Key".
diff --git a/frontends/web/templates/decode.html b/frontends/web/templates/decode.html index 6b19dcf..c5c5667 100644 --- a/frontends/web/templates/decode.html +++ b/frontends/web/templates/decode.html @@ -113,9 +113,9 @@ (provide same factors used during encoding) +
-
- +
@@ -126,10 +126,9 @@
If PIN was used during encoding
-
-
+
@@ -150,7 +149,7 @@
- +
PNG, JPG, or other image of QR code
@@ -369,4 +368,4 @@ document.querySelectorAll('.drop-zone').forEach(zone => { } }); -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/frontends/web/templates/decode.html_20251229 b/frontends/web/templates/decode.html_20251229 new file mode 100644 index 0000000..6b19dcf --- /dev/null +++ b/frontends/web/templates/decode.html_20251229 @@ -0,0 +1,372 @@ +{% extends "base.html" %} + +{% block title %}Decode Message - Stegasoo{% endblock %} + +{% block content %} +
+
+
+
+
Decode Secret Message or File
+
+
+ {% if decoded_message %} + +
+
Message Decrypted Successfully!
+
+ + +
+
{{ decoded_message }}
+ +
+ + + Decode Another + + + {% elif decoded_file %} + +
+
File Decrypted Successfully!
+
+ +
+ +
{{ filename }}
+

{{ file_size }}

+ {% if mime_type %} + Type: {{ mime_type }} + {% endif %} +
+ + + Download File + + +
+ + File expires in 5 minutes. Download now. +
+ + + Decode Another + + + {% else %} + +
+
+
+ +
+ +
+ + Drop image or click to browse +
+ +
+
+ The same reference photo used for encoding +
+
+ +
+ +
+ +
+ + Drop image or click to browse +
+ +
+
+ The image containing the hidden message/file +
+
+
+ +
+ + +
+ The phrase for the day the message was encoded +
+
+ +
+ +
+ SECURITY FACTORS + (provide same factors used during encoding) +
+ +
+
+ + +
+ + +
+
+ If PIN was used during encoding +
+ +
+ +
+ + +
+
+ +
+
+ +
PNG, JPG, or other image of QR code
+
+
+
+ If RSA key was used during encoding (file or QR image) +
+
+
+ + +
+ + +
+ Leave blank if your key file is not password-protected +
+
+ + +
+ + {% endif %} +
+
+ + {% if not decoded_message and not decoded_file %} +
+
+
Troubleshooting
+
    +
  • + + Make sure you're using the exact same reference photo file +
  • +
  • + + Use the phrase for the day the message was encoded, not today +
  • +
  • + + Provide the same security factors (PIN and/or RSA key) used during encoding +
  • +
  • + + Ensure the stego image hasn't been resized or recompressed +
  • +
  • + + If using an RSA key, make sure the password is correct +
  • +
+
+
+ {% endif %} +
+
+{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/frontends/web/templates/encode.html b/frontends/web/templates/encode.html index 1e89d1c..fd8fd9d 100644 --- a/frontends/web/templates/encode.html +++ b/frontends/web/templates/encode.html @@ -126,19 +126,25 @@ (provide at least one: PIN or RSA Key) + + + + + +
-
- -
- - -
-
Your static 6-9 digit PIN (if configured)
+
+ +
+ + +
+
Your static 6-9 digit PIN (if configured)
-
+
@@ -166,7 +172,7 @@
- +