I'm using GPG4Win to create a key pair. I'd like to be able to encrypt/decrypt a given file using myself as recipient so that I use exported key pair alone.

I want to be able to do this from a batch (.bat) file.

In general what are common steps used to encrypt/decrypt files using an exported key pair with commandline GPG?

migrated from security.stackexchange.com May 3 '18 at 14:58

This question came from our site for information security professionals.


I was able to use GPG with single key pair with --default-recipient-self argument.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.