Initial commit

Spun out from where I had it previously (a private repo) and tidied the
code up a bit. Included a bit more static analysis courtesy of ruff,
and fixed up the errors. (There weren't many.)

Update README
This commit is contained in:
James Smith 2026-01-03 15:35:20 +02:00
commit 45b4b761f4
6 changed files with 461 additions and 0 deletions

17
README.md Normal file
View file

@ -0,0 +1,17 @@
# pdf_decrypt
A tool to decrypt annoyingly encrypted PDFs.
Save passwords in `~/.config/pdf_decrypt/passwords.yaml` as a list, like so:
```yaml
---
- 12345
- 54321
```
The script will go through each of them and try to decrypt it. If none of them
work, it will exit and complain.
I suggest installing through `uv`, this makes this script into an executable
on your path. If you prefer, there is also PEP-723 metadata inline.