/lorenz-sz

Simulator of the Lorenz SZ40 cipher machine

Primary LanguageRust

lorenz-sz

Simulator of the Lorenz SZ40 cipher machine.

Example

use lorenz_sz::{Machine, patterns::ZMUG_PATTERN};

let machine = Machine::new(&ZMUG_PATTERN);
for k in machine.keystream().take(50) {
    // You'll need to handle the encryption yourself; this crate only
    // implements the pseudo-random number generator.
    println!("{}", k);
}