sick

sign and check files using ed25519
git clone git://z3bra.org/sick
Log | Files | Refs | Submodules | README | LICENSE

README (1457B)


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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
sick
====

Sign and check files using ed25519.
sick(1) will let you generate private/public key pairs, sign files using your
private key, and check a file signature using public keys stored in a keyring.

Generating keys
---------------

To generate a key pair, run

	$ sick -g alice

This will create two files: `alice.key` (private) and `alice.pub` (public).
The private key is used to sign files, while the public key can be distributed
and used to check signatures.

Signing streams
---------------

Once the private key is generated, you can use it to sign streams of data with
the following command:

	$ sick -f alice.key -s < README > SIGNED

The whole stream will be dumped to stdout, and the signature will be appended.

Checking streams
----------------

### Using a file

A signed stream can be verified against a public key with the following
command:

	$ sick -f alice.pub < SIGNED

If the signature can be verified against the public key provided, the content
of the message will be dumped to stdout.

### Using a keyring

In case the `-f` flag is omited, sick(1) will check the signature against all
the files located in the $KEYRING directory.

	$ export KEYRING="$HOME/.keyring"
	$ mkdir $KEYRING
	$ mv alice.pub $KEYRING/
	$ sick < SIGNED

Trim a signature
----------------

You can discard a signature on a stream by using the `-t` (trim) flag. It will
dump the input stream to stdout without the signature:

	$ sick -t SIGNED > UNSIGNED