Sometimes you need a secure way to pass a file from one place to another, ensuring that only the intended recipient can read its contents. We can achieve this simply using GPG keys.
The flow is:
- Recipient generates a GPG key
- Recipient exports a public key
- Recipient sends public key to sender
- Sender receives public key from recipient