One of the major mechanisms of enigma is the switchboard. The switchboard simply allows one letter to be mapped to another.
When creating a new connection there are three Criteria:
A letter cannot map to itself
A letter can only map to one other letter
No two letters can map to a single letter
A hash table could be an easy way to implement this, but checks will need to be made to ensure good data is entered.
One of the major mechanisms of enigma is the switchboard. The switchboard simply allows one letter to be mapped to another. When creating a new connection there are three Criteria:
A hash table could be an easy way to implement this, but checks will need to be made to ensure good data is entered.