39 lines
1.0 KiB
Markdown
39 lines
1.0 KiB
Markdown
# Hiddencode Project
|
|
|
|
This workspace contains a minimal implementation matching the provided specification:
|
|
|
|
- `server`: Flask server + SQLite database that stores SHA and two codes (upload/download).
|
|
- `client/Writer`: C# WinForms app to write codes for a target file.
|
|
- `client/Reader`: C# WinForms app to scan a folder and read codes for files.
|
|
|
|
Quick start (macOS / Ubuntu for server):
|
|
|
|
1. Server
|
|
|
|
```bash
|
|
cd server
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
pip install -r requirements.txt
|
|
python db_init.py
|
|
python app.py
|
|
```
|
|
|
|
Server listens on `http://0.0.0.0:5000` by default.
|
|
|
|
2. Clients (Windows recommended, requires .NET 6+)
|
|
|
|
Open `client/Writer/Writer.csproj` and `client/Reader/Reader.csproj` in Visual Studio or run:
|
|
|
|
```powershell
|
|
cd client/Writer
|
|
dotnet run
|
|
|
|
cd ../Reader
|
|
dotnet run
|
|
```
|
|
|
|
Notes:
|
|
- Server base URL is `http://localhost:5000` in the client code; change if needed.
|
|
- The server stores entries in SQLite file `server/hiddencode.db` with fields: id, sha, upload_code, download_code, created_at.
|