-21
signing/rsign.cheat
-21
signing/rsign.cheat
···
1
-
% rsign
2
-
3
-
# Sign a file with a trusted comment
4
-
rsign sign "<input_file>" -t "<trusted_comment>"
5
-
6
-
# Verify a file with my public key
7
-
rsign verify "<input_file>" -P <sapphic_public_key>
8
-
9
-
# Verify a file with my public key, with a different named signature file
10
-
rsign verify "<input_file>" -P <sapphic_public_key> -x "<signature_file>"
11
-
12
-
# Verify a file with someone else's public key
13
-
rsign verify "<input_file>" -P <public_key>
14
-
15
-
# Verify a file with someone else's public key, with a different named signature file
16
-
rsign verify "<input_file>" -P <public_key> -x "<signature_file>"
17
-
18
-
$ sapphic_public_key: echo RWRGdAWJCSQzseElKbOIcuDvVwxR+oKzsy8FXX3Wsx0I98MA6bTVcGaL
19
-
20
-
$ input_file: fd -tf --maxdepth 1 . | fzf
21
-
$ signature_file: fd -tf --maxdepth 1 --glob "*.minisig" . | fzf