Is there a way to gpg sign all previous commits?

My approach is git rebase –exec “git commit –amend –no-edit -n -S” -i 8fd7b22 All commits started from the next after 8fd7b22 will be rebased with no changes except signing. To change all commits started from the very first one you may use –root (since Git v1.7.12): git rebase –exec “git commit –amend –no-edit -n … Read more

Git error – gpg failed to sign data

For troubleshooting, two things to first try: run gpg –version, and make sure you have GnuPG version 2+ (not version 1) installed run echo “test” | gpg –clearsign, to make sure gpg itself is working If that all looks all right, one next thing to try: run brew install pinentry to ensure you have a … Read more

Encrypt files using PGP in PHP?

Question 1: About PGP PGP (Pretty Good Privacy) is a product and trademark of Symantec Corporation (they bought it some years ago). OpenPGP is the standard used by PGP. GnuPG (Gnu Privacy Guard) is a free and open source implementation of PGP. So what you want to do is encrypt to an OpenPGP key. Which … Read more

encryption/decryption with multiple keys

GnuPG does multi-key encryption in standard. The following command will encrypt doc.txt using the public key for Alice and the public key for Bob. Alice can decrypt using her private key. Bob can also decrypt using his private key. gpg –encrypt –recipient [email protected] \ –recipient [email protected] doc.txt This feature is detailed in the user guide … Read more