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 encode(&self, input: usize) -> usize {
        self.wiring[(input + self.position) % 26]
    }
}