#bech32 #cryptography #keys #security #uri

cryptouri

URN-like namespace for cryptographic objects (keys, signatures, etc) with Bech32 encoding/checksums

6 releases (breaking)

0.4.0 Feb 8, 2020
0.3.0 Jan 30, 2020
0.2.0 Oct 7, 2019
0.1.1 Jun 5, 2019
0.0.1 Aug 28, 2018

#993 in Cryptography

Download history 14/week @ 2022-06-14 3/week @ 2022-06-21 15/week @ 2022-06-28 35/week @ 2022-07-05 12/week @ 2022-07-12 12/week @ 2022-07-19 19/week @ 2022-07-26 51/week @ 2022-08-02 9/week @ 2022-08-09 16/week @ 2022-08-16 6/week @ 2022-08-23 42/week @ 2022-08-30 14/week @ 2022-09-06 21/week @ 2022-09-13 25/week @ 2022-09-20 15/week @ 2022-09-27

89 downloads per month

Apache-2.0 OR MIT

42KB
908 lines

CryptoURI.rs

Crate Docs Build Status Safety Dance MSRV Apache 2.0+MIT Licensed Gitter Chat

A URI-like format for serializing cryptographic objects including keys, signatures, and digests using URI generic syntax:

crypto:pub:key:ed25519:6adfsqvzky9t042tlmfujeq88g8wzuhnm2nzxfd0qgdx3ac82ydqf03cvv

A URI-safe "dasherized" form is also supported:

crypto-pub-key-ed25519-6adfsqvzky9t042tlmfujeq88g8wzuhnm2nzxfd0qgdx3ac82ydqlu986g

Documentation

About CryptoURI

The CryptoURI format leverages the URI generic syntax defined in RFC 3986 to provide simple and succinct encodings of cryptographic keys, including public keys, private/secret keys, encrypted secret keys with password-based key derivation, digital signatures, key fingerprints, and other digests.

Binary data is serialized using the Bech32 encoding format which is designed to prevent human transcription errors by using an alphabet that eliminates similar-looking characters to avoid transcription errors and adds a checksum across the whole URI to detect these errors when they do happen. CryptoURIs which have been mis-transcribed will fail to decode.

Minimum Supported Rust Version

  • Rust 1.39+

Help and Discussion

Have questions? Want to suggest a feature or change?

Code of Conduct

We abide by the Contributor Covenant and ask that you do as well.

For more information, please see CODE_OF_CONDUCT.md.

Contributing

Bug reports and pull requests are welcome on GitHub at:

https://github.com/cryptouri/cryptouri-rs

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as noted below, without any additional terms or conditions.

License

The cryptouri Rust crate is dual licensed under your choice of either of:

Dependencies

~4.5MB
~92K SLoC