Thanks to visit codestin.com
Credit goes to lib.rs

#stream-cipher #traits #xsalsa20

no-std salsa20

Pure Rust implementation of the Salsa20 stream cipher

24 releases

Uses new Rust 2024

0.11.0-rc.1 Sep 2, 2025
0.11.0-rc.0 May 30, 2025
0.11.0-pre.2 Oct 7, 2024
0.11.0-pre.1 Jul 27, 2024
0.0.0 Oct 6, 2016

#2598 in Cryptography

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

2,354,977 downloads per month
Used in 1,453 crates (37 directly)

MIT/Apache

46KB
252 lines

RustCrypto: Salsa20 Stream Cipher

Crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status HAZMAT

Pure Rust implementation of the Salsa20 Stream Cipher.

About

Salsa20 is a stream cipher which is designed to support high-performance software implementations.

This crate also contains an implementation of XSalsa20: a variant of Salsa20 with an extended 192-bit (24-byte) nonce, gated under the xsalsa20 Cargo feature (on-by-default).

⚠️ Security Warning: Hazmat!

This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to verify ciphertext integrity), which can lead to serious vulnerabilities if used incorrectly!

No security audits of this crate have ever been performed, and it has not been thoroughly assessed to ensure its operation is constant-time on common CPU architectures.

USE AT YOUR OWN RISK!

License

Licensed under either of:

at your option.

Contribution

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.

Dependencies

~670KB
~17K SLoC