The Enigma Machine - Part 1: The Plugboard
Last updated
Was this helpful?
Last updated
Was this helpful?
constructor validation
unique character size must same with input length
input length should be even
wire length should less than 20
if wire index is exist
if index odds return wires[index + 1]
if index even return wires[index - 1]
if the wire doesn't exist just return input