enigma-cli 1.0.0

A command-line interface for an Enigma machine simulator. Configurable with any reflector, number of rotors, and plugboard pairs.
Documentation
1
2
3
4
5
impl super::Rotor {
    pub fn turn(&mut self) {
        self.position = (self.position + 1) % 26;
    }
}