Revert "2.1.4 - Manual code cleanup stuff, version configued in 1ish place, etc."

This reverts commit c784140cde.
This commit is contained in:
Aaron D. Lee
2025-12-29 21:00:44 -05:00
parent 0aaeb7c6c7
commit 40ce6d663c
6 changed files with 22 additions and 29 deletions

View File

@@ -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, STEGASOO_VERSION
VALID_RSA_SIZES, MAX_FILE_SIZE,
)
# QR Code support
@@ -754,8 +754,7 @@ 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,
stegasoo_version=STEGASOO_VERSION
max_payload_kb=MAX_FILE_PAYLOAD_SIZE // 1024
)

View File

@@ -457,7 +457,7 @@ stegasoo info image.png</code></pre>
<div class="text-center mt-4 text-muted small">
<p>
Stegasoo v{{ stegasoo_version }} &bull;
Stegasoo v2.1.3 &bull;
<i class="bi bi-github me-1"></i>Open Source &bull;
Built with Python, FastAPI, and cryptography
</p>

View File

@@ -63,7 +63,7 @@
<div class="container text-center text-muted">
<small>
<img src="{{ url_for('static', filename='favicon.svg') }}" alt="" height="16" class="me-1" style="vertical-align: text-bottom;">
Stegasoo v{{__version__}} — Steganography using "Reference Photo Hashing + Day-Phrase + PIN/Key".
Stegasoo v2.1.3 — Steganography using "Reference Photo Hashing + Day-Phrase + PIN/Key".
</small>
</div>
</footer>

View File

@@ -113,9 +113,9 @@
<span class="text-warning small">(provide same factors used during encoding)</span>
</h6>
<!-- CHANGED SECTION: Updated column widths -->
<div class="row">
<div class="col-md-4 mb-3">
<div class="col-md-6 mb-3">
<label class="form-label"><i class="bi bi-123 me-1"></i> PIN</label>
<div class="input-group">
<input type="password" name="pin" class="form-control" id="pinInput" placeholder="6-9 digits" maxlength="9">
@@ -126,9 +126,10 @@
<div class="form-text">
If PIN was used during encoding
</div>
</div>
<div class="col-md-8 mb-3">
<div class="col-md-6 mb-3">
<label class="form-label">
<i class="bi bi-file-earmark-lock me-1"></i> RSA Key
</label>
@@ -149,7 +150,7 @@
<input type="file" name="rsa_key" class="form-control form-control-sm" id="rsaKeyInput" accept=".pem,.key,application/x-pem-file">
</div>
<div class="tab-pane fade" id="rsaQrTabDec" role="tabpanel">
<input type="file" name="rsa_key_qr" class="form-control form-control-sm" id="rsaKeyQrInput" accept="image/*">
<input type="file" name="rsa_key_qr" class="form-control form-control-sm" id="rsaKeyQrInput" accept="image/*">
<div class="form-text small">PNG, JPG, or other image of QR code</div>
</div>
</div>

View File

@@ -126,25 +126,19 @@
<span class="text-warning small">(provide at least one: PIN or RSA Key)</span>
</h6>
<!-- Replace this section in your encode.html file -->
<!-- From line 111-149 approximately -->
<div class="row">
<div class="col-md-4 mb-3">
<label class="form-label"><i class="bi bi-123 me-1"></i> PIN</label>
<div class="input-group">
<input type="password" name="pin" class="form-control" id="pinInput" placeholder="6-9 digits" maxlength="9">
<button class="btn btn-outline-secondary" type="button" id="togglePin">
<i class="bi bi-eye"></i>
</button>
</div>
<div class="form-text">Your static 6-9 digit PIN (if configured)</div>
<div class="col-md-6 mb-3">
<label class="form-label"><i class="bi bi-123 me-1"></i> PIN</label>
<div class="input-group">
<input type="password" name="pin" class="form-control" id="pinInput" placeholder="6-9 digits" maxlength="9">
<button class="btn btn-outline-secondary" type="button" id="togglePin">
<i class="bi bi-eye"></i>
</button>
</div>
<div class="form-text">Your static 6-9 digit PIN (if configured)</div>
</div>
<div class="col-md-8 mb-3">
<div class="col-md-6 mb-3">
<label class="form-label">
<i class="bi bi-file-earmark-lock me-1"></i> RSA Key
</label>

View File

@@ -11,8 +11,7 @@ from pathlib import Path
# VERSION
# ============================================================================
__version__ = "2.1.4"
STEGASOO_VERSION = "2.1.4"
__version__ = "2.1.3"
# ============================================================================
# FILE FORMAT