10 releases (5 breaking)

0.6.0 Dec 1, 2023
0.5.3 Jun 4, 2022
0.5.2 Feb 6, 2022
0.4.1 Jan 12, 2018
0.1.0 Jun 14, 2016

#112 in Cryptography

Download history 25/week @ 2023-11-28 18/week @ 2023-12-26 1/week @ 2024-02-13 24/week @ 2024-02-20 15/week @ 2024-02-27 24/week @ 2024-03-05 109/week @ 2024-03-12

173 downloads per month

MIT license

55KB
1K SLoC

Signify - Ed25519 signature tool

crates.io docs.rs docs License: MIT Build Status

Create cryptographic signatures for files and verify them. This is based on signify, the OpenBSD tool to sign and verify signatures on files. It is based on the Ed25519 public-key signature system by Bernstein et al.

signify-rs is fully compatible with the original implementation. It can verify signatures generated by OpenBSD signify and signs data in a format that it can verify as well.

You can read more about the ideas and concepts behind signify in Securing OpenBSD From Us To You.

Installation

cargo install signify

Usage

The CLI is designed to be compatible with the reference implementation and accepts the same command line flags as it.

Create a key pair:

signify -G -p pubkey -s seckey

Sign a file using the secret key:

signify -S -s seckey -m README.md

Verify the signature:

signify -V -p pubkey -m README.md

To see how to use libsignify, check out the examples/ directory or the documentation.

Testing

There are basic unit tests, but many more are needed for good coverage 😞.

However, we ensure that a full cycle of generating a keypair, then signing & verifying works. To run them, use the following commands:

./tests/full-cycle.sh

For correctness, we compare interoperability with the OpenBSD signify:

./tests/compare.sh

The complete test suite can be conveniently ran with make test.

License

MIT. See LICENSE.

Dependencies

~4–15MB
~169K SLoC