2018-10-23 22:22:20 +02:00
|
|
|
# GPG
|
|
|
|
|
2018-11-20 04:50:09 +01:00
|
|
|
GPG is the standard encryption tool.
|
2018-10-23 22:22:20 +02:00
|
|
|
|
2018-11-20 04:50:09 +01:00
|
|
|
## Use Cases
|
2018-10-23 22:22:20 +02:00
|
|
|
|
2018-11-20 04:50:09 +01:00
|
|
|
gpg can be used to:
|
2018-10-23 22:22:20 +02:00
|
|
|
|
2018-11-20 04:50:09 +01:00
|
|
|
- Sign things with your signing subkey
|
|
|
|
- Read encrypted messages sent to you with your encryption subkey
|
|
|
|
- Send encrypted messages to other people with their public key
|
|
|
|
- Verify the authenticity of someone's messages and other data with their public key
|
2018-10-23 22:22:20 +02:00
|
|
|
|
2018-11-20 04:50:09 +01:00
|
|
|
You should not use gpg if:
|
|
|
|
|
|
|
|
- You should use gpg.
|
2018-10-23 22:22:20 +02:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2018-11-20 04:50:09 +01:00
|
|
|
Export `GPG_TTY` in your shell's init script. This is how you would do it in [fish](/fish):
|
2018-10-23 22:22:20 +02:00
|
|
|
|
|
|
|
```fish
|
|
|
|
export GPG_TTY=(tty)
|
|
|
|
```
|
|
|
|
|
2018-11-20 04:50:09 +01:00
|
|
|
[gnupg]: https://github.com/gpg/gnupg
|