Spaces:
Sleeping
Sleeping
Update README.md
Browse files6 unmodified lines78910116 unmodified linespinned: falselicense: mit---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference6 unmodified lines789101112131415161718192021222324252627282930313233343536373839404142434445466 unmodified linespinned: falselicense: mit---# Crypto-Stego API (FastAPI + Docker)A lightweight API wrapper around your three modules:- `sender.py` — encrypts the cover image and produces two Fernet keys.- `embbed.py` — embeds a secret image into the encrypted image and appends a third key.- `retreive.py` — reconstructs the encrypted image and retrieves the secret image.## Endpoints1. `POST /encrypt` — form-data with `image` (file). Returns:- `encrypted_image` (download URL)- `aes_key`, `aes_key_2`- `run_dir` (use for subsequent steps)2. `POST /embed` — form-data with:- `run_dir` (string from `/encrypt` response)- `secret_image` (file)Returns:- `stego_image` (download URL)- `secret_shuffle_key`3. `POST /retrieve` — form-data with:- `run_dir`- JSON body: `{ "aes_key": "...", "aes_key_2": "...", "secret_shuffle_key": "..." }`Returns:- `constructed_image`, `retrieved_secret_image` (download URLs)- Metrics: RMSE and entropyEach request runs inside an isolated `runs/<uuid>` directory to avoid cross-request collisions.## Run locally```bashdocker build -t crypto-stego .docker run -p 7860:7860 crypto-stegoCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
README.md+35