1
0
Fork 0
mayvaneday/garden/gpg.gmi

39 lines
471 B
Text
Executable file

# Quick guide to GPG
## Generate a key
```
gpg --generate-key
```
## Import an existing key
```
gpg --import key.txt
```
## Export a key
```
gpg --export -a person@domain.tld public.gpg
gpg --export-secret-keys -a person@domain.tld
```
## Encrypt a file using a specific key
```
gpg --encrypt -a -r person@domain.tld file.ext
```
## Sign a file using a specific key
```
gpg --clear-sign -a file.ext
```
## List all keys in the keyring
```
gpg --list-keys
```