1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
471 B
Plaintext

# 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
```