Thumpalumpacus
Major
Any code system that relies on the enemy not having a captured a code decode machine for its security is close to worthless. The algorithm itself needs to be so strong on its own that capture of a machine is no cause for concern.
I think the Germans did rely upon the algorithm itself. They just didn't foresee the invention of the digital computer. The three-rotor Enigma with ten jack positions had almost one hundred billion (a one followed by eleven zeroes) possible permutations, which surely would have overtaxed the most dedicated cryptanalysis force without computers.