NAME
sick
—
sign/check files using ed25519
signatures
SYNOPSIS
sick |
[-astv ] [-g
ALIAS] [-f
KEY] |
DESCRIPTION
sick
generates key pairs, signs, checks
and remove signatures for a file or stream.
OPTIONS
The default action is to check the signature appended to the
message given on stdin. If the signature can be verified, the message will
be written to stdout without the signature. If the
-f
flag is not specified on the command line, all
files in the KEYRING
directory will be tried to
verify the message.
-a
- Deal with armored signature. The signature are base64 encoded, wrapped at 76 characters and surrounded with two context lines. See SIGNATURE FORMAT For more information on the signature format.
-s
- Make
sick
perform a signing operation on the current stream. This will append the base64 encoded signature to the stream and dump them both to stdout. See SIGNATURE FORMAT for information on what will be appended to the stream. -t
- Make
sick
trim the signature at the end of the stream if there is one, and write the message to stdout. If there is no signature, the whole stream gets written. -v
- Enable verbose mode.
sick
will log informative messages to stderr. -g
ALIAS- Generates an ed25519 key pairs: `ALIAS.key` and `ALIAS.pub`
-f
KEY- Specifies the key file to be used for the current operation (sign or check).
SIGNATURE FORMAT
ed25519 signatures are 64 bytes long. For easier reading in
text/plain format, sick
can base64 encode them (see
-a
flag) prior to appending them to stdout. The
base64 signature is wrapped at 76 bytes as specified by POSIX uuencode. In
order to make it easier to detect the signature, it will be wrapped between
two lines, as follows:
-----BEGIN ED25519 SIGNATURE----- base64 encoded signature -----END ED25519 SIGNATURE-----
ENVIRONMENT
KEYRING
- Location of the keyring directory
EXAMPLES
Generating a key pair: sick -g $USER
Signing a stream:
sick -f ${USER}.key < FILE > SIGNED
Checking a signed file (FILE will be empty if the signature doesn't match the public key):
sick -f ${USER}.pub SIGNED > FILE
SEE ALSO
AUTHORS
Willy Goiffon <dev@z3bra.org>