docs: update for encrypt-by-default CLI
Some checks failed
CI / Lint & Format (push) Failing after 14s
CI / Tests (push) Has been skipped
CI / Security Scan (push) Failing after 21s

Update README.md, api.md, and error hints to reflect:
- encryption is now default (no -e flag needed)
- use -E/--no-encrypt to disable
- file path shortcut (fpaste file.txt)
This commit is contained in:
Username
2025-12-20 18:12:00 +01:00
parent ba29b6e319
commit a2c5a013ef
3 changed files with 20 additions and 18 deletions

View File

@@ -456,7 +456,7 @@ class IndexView(MethodView):
400,
size=content_size,
min_size=min_size,
hint="Encrypt content before uploading (-e flag in fpaste)",
hint="Encrypt content before uploading (fpaste encrypts by default)",
)
# Entropy check
@@ -476,7 +476,7 @@ class IndexView(MethodView):
400,
entropy=round(entropy, 2),
min_entropy=min_entropy,
hint="Encrypt content before uploading (-e flag in fpaste)",
hint="Encrypt content before uploading (fpaste encrypts by default)",
)
# Binary content requirement (reject recognizable formats)
@@ -492,7 +492,7 @@ class IndexView(MethodView):
"Recognizable format not allowed",
400,
detected=detected_format,
hint="Encrypt content before uploading (-e flag in fpaste)",
hint="Encrypt content before uploading (fpaste encrypts by default)",
)
# Deduplication check