summaryrefslogtreecommitdiff
path: root/b9pvpp.md
blob: 650aa2a7ea013a0f4d2221010a829aff61ec17f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
id: b9pvpp
date: 2026-02-15T17:24:49+0300
languages: [en]
aliases:

reviews:

tags:
- draft
- knowledge

- gnupg
---
# Create signature using GPG

To create simple sign using GnuPG:
```sh
cat file | gpg --sign # Binary message and signature
cat file | gpg --sign --armor # ASCII message and signature

gpg --sign file # Creates binary .asc file
gpg --sign --armor file # Creates ASCII .asc file
```

To create clear sign (shows message inside) using GnuPG:
```sh
cat file | gpg --clear-sign # ASCII clear message and signature
```

To create detached sign using GnuPG:
```sh
cat file | gpg --detach-sign # Binary detached signature
cat file | gpg --detach-sign --armor # ASCII detached signature
```

## Up
-