How ashwiz03/softwaresec-grp05 works
Tatou is a web platform and CLI for PDF watermarking. In the web workflow, a user signs up or authenticates, manages uploaded documents, and can list documents or request watermark operations; the server validates input, accesses document records, and delegates watermark work to the method registry. The CLI independently explores PDFs or embeds and extracts secrets. The README documents the website and deployment, but sampled excerpts do not show the full upload, download, or frontend/API wiring, so those connections are left unasserted or dashed.
Main entry points: watermarking_utils.py Method registry and PDF tools · server.py Flask API · index.html Website pages · watermarking_cli.py PDF watermark CLI
Components 14
Web application
- Website pages
server/src/static/index.html - Flask API
server/src/server.py - Input validation
server/src/validation.py
Watermarking
- Method registry and PDF tools
server/src/watermarking_utils.py - Watermark method contract
server/src/watermarking_method.py - EOF append watermark
server/src/add_after_eof.py - Signed EOF watermark
server/src/hmac_signed_eof.py - Encrypted text watermark
server/src/hmac_text_render.py - Invisible text watermark
server/src/invisible_text_renderer.py - Metadata watermark
server/src/metadata_watermark.py - Bash bridge watermark
server/src/unsafe_bash_bridge_append_eof.py
Command line
- PDF watermark CLI
server/src/watermarking_cli.py
Persistence
- User and document records
db/tatou.sql
Other components
- Browser user
Connections 13
- Browser user → Website pages: opens website
README.md - Website pages → Flask API: uses API
- Flask API → Input validation: validates input
server/src/server.py - Flask API → User and document records: queries records
server/src/server.py - Flask API → Method registry and PDF tools: lists methods
server/src/server.py - Method registry and PDF tools → Watermark method contract: uses contract
server/src/watermarking_utils.py - Method registry and PDF tools → EOF append watermark: registers method
server/src/watermarking_utils.py - Method registry and PDF tools → Signed EOF watermark: registers method
server/src/watermarking_utils.py - Method registry and PDF tools → Encrypted text watermark: registers method
server/src/watermarking_utils.py - Method registry and PDF tools → Invisible text watermark: registers method
server/src/watermarking_utils.py - Method registry and PDF tools → Metadata watermark: registers method
server/src/watermarking_utils.py - Method registry and PDF tools → Bash bridge watermark: registers method
- PDF watermark CLI → Method registry and PDF tools: calls tools
server/src/watermarking_cli.py