[][src]Crate spritz_cipher

Spritz Cipher

spritz_cipher is a Rust implementation of the Spritz Cipher.

Spritz - a spongy RC4-like stream cipher and hash function.

Spritz is an improvement on RC4 based upon this paper

The tests and examples have Encryption, Hash and MAC implementations. It requires no dependencies when used as a library. The tests and examples use rand and libc to compare against 2 different C implementations.


Spritz is not as robust as other ciphers. There are known theortical attacks that may or may not allow an attacker to comprise the communication. Spritz is also slower than SHA3. That said, it is better than nothing



The primary structure that contains the buffer and varirables for the Cipher