I read a book by Daniel V. Gallery. He was the commander of a submarine hunter-killer group in the Atlantic during the war. They actually captured a U-boat, instead of just sinking it. In the process, they captured an enigma machine, and the code books. The U-boat crew was so sure they were sinking, that they did not toss them overboard to sink, as they were supposed to.
In the book, Gallery notes that from that moment on, the Allies could read every dispatch to every U-boat throughout the rest of the war.
However...
What he didn't know, and what was not in his book, was the fact that the code breakers had already broken the code, as noted in an earlier post.
What Gallery
did note, however, was that his commanders in Washington seemed to have psychic powers. Because they would often send him to a specific area to hunt subs, and he often found a sub right where they told him to look.