Core: - paths.py: centralized ~/.soosef/ path constants - config.py: JSON config loader with dataclass defaults - exceptions.py: SoosefError hierarchy - cli.py: unified Click CLI wrapping stegasoo + verisoo + native commands Keystore: - manager.py: unified key management (Ed25519 identity + channel keys) - models.py: IdentityInfo, KeystoreStatus dataclasses - export.py: encrypted key bundle export/import for USB transfer Fieldkit: - killswitch.py: ordered emergency data destruction (keys first) - deadman.py: dead man's switch with check-in timer - tamper.py: SHA-256 file integrity baseline + checking - usb_monitor.py: pyudev USB whitelist enforcement - geofence.py: haversine-based GPS boundary checking Web frontend (Flask app factory + blueprints): - app.py: create_app() factory with context processor - blueprints: stego, attest, fieldkit, keys, admin - templates: base.html (dark theme, unified nav), dashboard, all section pages - static: CSS, favicon Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
36 lines
928 B
Python
36 lines
928 B
Python
"""
|
|
Steganography blueprint — encode, decode, generate, tools.
|
|
|
|
Routes lifted from stegasoo's frontends/web/app.py. In Phase 1, these
|
|
will be fully implemented by migrating the stegasoo route logic here.
|
|
For now, they render placeholder templates.
|
|
"""
|
|
|
|
from flask import Blueprint, render_template
|
|
|
|
bp = Blueprint("stego", __name__)
|
|
|
|
|
|
@bp.route("/encode", methods=["GET", "POST"])
|
|
def encode():
|
|
"""Encode a message into a carrier image."""
|
|
return render_template("stego/encode.html")
|
|
|
|
|
|
@bp.route("/decode", methods=["GET", "POST"])
|
|
def decode():
|
|
"""Decode a message from a stego image."""
|
|
return render_template("stego/decode.html")
|
|
|
|
|
|
@bp.route("/generate")
|
|
def generate():
|
|
"""Generate credentials (passphrase, PIN, RSA keys)."""
|
|
return render_template("stego/generate.html")
|
|
|
|
|
|
@bp.route("/tools")
|
|
def tools():
|
|
"""Image analysis and utility tools."""
|
|
return render_template("stego/tools.html")
|