|
|
3 일 전 | |
|---|---|---|
| .. | ||
| .gitignore | 3 일 전 | |
| .htaccess | 3 일 전 | |
| README.md | 3 일 전 | |
| decrypt.sh | 3 일 전 | |
| passphrase.txt.example | 3 일 전 | |
| pgp-decrypt.php | 3 일 전 | |
Decrypts a PGP-encrypted attachment using the private key stored in this folder.
The private key is passphrase-protected, and the passphrase is kept in a
separate file (passphrase.txt) so it never lives inside the script.
| File | Purpose |
|---|---|
decrypt.sh |
The decryption script. |
pgp-secret-keys.asc |
The passphrase-protected private key (CHECK24 Datenschutz). |
passphrase.txt |
The key passphrase — you fill this in. Git-ignored. |
passphrase.txt.example |
Template for passphrase.txt. |
*.pgp |
The encrypted attachment(s) to decrypt. |
brew install gnupgPut the real passphrase into passphrase.txt (replace the placeholder):
printf '%s' 'your-real-passphrase' > passphrase.txt
# Auto-detect the single *.pgp in this folder, write the decrypted file next to it:
./decrypt.sh
# Or specify input and output explicitly:
./decrypt.sh "Anschreiben Check24_ 251102-0536-IP6054.pdf.pgp" out.pdf
mktemp -d), so your real ~/.gnupg keyring is never touched, and the temp
keyring is deleted on exit..gitignore excludes the passphrase, the private key, the *.pgp inputs and
decrypted *.pdf output so secrets don't get committed. Adjust to taste.gpg via a file descriptor (--passphrase-fd),
not the command line, so it doesn't show up in the process list.