forked from claw/flaskpaste
expand magic byte detection for common file formats
Add detection for: - Images: BMP, TIFF, ICO - Video: MP4, WebM, FLV, Matroska - Audio: MP3, FLAC, OGG - Documents: MS Office OLE (DOC/XLS/PPT) - Executables: PE (EXE/DLL), ELF, Mach-O, WASM - Archives: BZIP2, XZ, ZSTD, LZ4, 7z, RAR - Data: SQLite This improves REQUIRE_BINARY enforcement by detecting more recognizable formats that should be encrypted before upload.
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -12,6 +12,7 @@ Unstructured intake buffer for ideas, issues, and observations. Items here are r
|
||||
- Design: compress-then-encrypt only (not compress-only)
|
||||
- Compressed data has high entropy → bypasses entropy enforcement
|
||||
- Must enforce encryption when compression enabled (CLI-side)
|
||||
- Server detects compression formats via magic bytes (REQUIRE_BINARY)
|
||||
- ETag support for conditional requests
|
||||
- Neovim/Vim plugin for editor integration
|
||||
- Webhook notifications for paste events
|
||||
|
||||
Reference in New Issue
Block a user