| Crates.io | lorenz-sz |
| lib.rs | lorenz-sz |
| version | 0.1.0 |
| created_at | 2024-07-04 02:00:02.364516+00 |
| updated_at | 2024-07-04 02:00:02.364516+00 |
| description | Simulator of the Lorenz SZ40 cipher machine |
| homepage | |
| repository | https://github.com/hughcoleman/lorenz-sz |
| max_upload_size | |
| id | 1291196 |
| size | 10,541 |
Simulator of the Lorenz SZ40 cipher machine.
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);
}