1 unstable release

0.1.0 Jul 4, 2024

#1877 in Cryptography

MIT license

11KB
133 lines

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

lib.rs:

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

No runtime deps