Daphne is a self-synchronizing byte stream cipher. The code is written in both Rust and Haskell.
To run the program, type cargo run
. The first time you run it, Cargo may download a quarter-gigabyte of data, which is the index to all crates.
You can run Daphne in the REPL with stack ghci
or use other Stack commands.
Run ``./test.sh` . This runs both implementations, check that the outputs are identical, and check that a certain sequence of bytes is present.