25 lines
407 B
Markdown
25 lines
407 B
Markdown
|
# GPG Cheatsheet
|
||
|
|
||
|
## Encryption via GPG
|
||
|
|
||
|
* Encryption of a file via gpg
|
||
|
```sh
|
||
|
gpg --symmetric --cipher-algo <algorithm> $PLAIN_TEXT
|
||
|
```
|
||
|
|
||
|
### Armored Encryption via GPG
|
||
|
|
||
|
* ASCII armored encryption output is done via
|
||
|
```sh
|
||
|
gpg --armor --symmetric --cipher-algo <algorithm> $PLAIN_TEXT
|
||
|
```
|
||
|
|
||
|
## Decryption via GPG
|
||
|
|
||
|
* Decryption of a file via gpg
|
||
|
```sh
|
||
|
gpg --output original_message.txt --decrypt $CIPHER
|
||
|
```
|
||
|
|
||
|
|