Collection of stream ciphers written in pure Rust.
⚠️ Security Warning: Hazmat!
Crates in this repository do not ensure ciphertexts are authentic (i.e. by using a MAC to verify ciphertext integrity), which can lead to serious vulnerabilities if used incorrectly!
Aside from the chacha20 crate, no crates in this repository have yet
received any formal cryptographic and security reviews/audits.
USE AT YOUR OWN RISK!
| Name | Crate name | Crates.io | Docs | MSRV | Security |
|---|---|---|---|---|---|
| ChaCha | chacha20 |
💚 | |||
| HC-256 | hc-256 |
💛 | |||
| Rabbit | rabbit |
💛 | |||
| RC4 | rc4 |
💔 | |||
| Salsa20 | salsa20 |
💚 |
The following describes the security level ratings associated with each hash function (i.e. algorithms, not the specific implementation):
| Heart | Description |
|---|---|
| 💚 | No known successful attacks |
| 💛 | Theoretical break: security lower than claimed |
| 💔 | Attack demonstrated in practice: avoid if at all possible |
All crates licensed under either of
at your option.
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 above, without any additional terms or conditions.