Crate lorenz_sz

Crate lorenz_sz 

Source
Expand description

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);
}

Modules§

patterns

Structs§

Keystream
A keystream produced by a Lorenz SZ40 machine.
Machine
A Lorenz SZ40 machine.

Type Aliases§

ChiPattern
MuPattern
PsiPattern