If things get as bad as they were in Nazi Germany, the Gestapo often put the fear in the people by getting them to extract info by means of torture before they were executed.
War propaganda, Bud. I've heard a lot of stories about Nazi torture, but oddly never any specific information that would lend it credibility. A specific Nazi interrogator invented non-coercive interrogation techniques that actually work (they involve a certain amount of acting, deception, and emotional manipulation

). I know quite a bit about this because I've studied them extensively.
The person who sold me the information is not a particularly nice or ethical guy himself; he was basically brainwashing prisoners for propagandistic purposes to suit the needs of his superiors.
BTW, while the Nazis did not use torture to extract information, the Allies did use torture to extract confessions. One very famous case was that of Raoul Wallenberg, who was apparently tortured before his execution by firing squad. I doubt he confessed to anything, or had any idea why he was arrested. One of those Kafkaesque situations. The official story you might have heard instead...how he might still be alive, or that the state department was trying to obtain his release...was an elaborate deception, that was exposed during the collapse of the erstwhile soviet union.
Torture is not useful to extract strategic information; people will say whatever they think you want to hear, regardless of whether it is actually true or not. That is not to say that prisoners of war are never tortured; actually it is quite common, and it is probably the most common done by whichever side is the more morally pretentious. But the purpose is to extract confessions precisely to make the moral pretensions appear plausible. That's how they got Khalid Sheikh Mohammed to "confess" to crimes it is impossible for him to have committed, in order to create the moral pretext for the invasion of Iraq and Afghanistan and subsequent atrocities that have been committed.
My father-in-law was tortured by the Commies in an attempt to try to get him to confess to being a foreign agent. Not only wasn't he, but it would have been impossible for him to do so had he even had the intent, which he didn't. Instead, he foolishly joined the Communist movement before realizing how astonishingly corrupt they were.
Unfortunately for him, one of his in-laws was so afraid of being tortured, she proactively told them whatever they wanted to hear. Implicated all her friends and relatives. (It took many years for the rest of her family to get over that, but interestingly eventually they stopped shunning her. I suppose forgiveness is part of the healing process).
You don't even necessarily have to worry about betraying your comrades while being tortured. At that point, the system is often so corrupt that they just go through the motions, then make stuff up and claim that you confessed to it. That's what happened to a buddy of mine who was tortured in Turkey. He was just passing through on his way to Vienna, but it was a bad time to be a Persian (Kurd, Armenian, Greek...) in Turkey. There was no conspiracy going on; the pension (flophouse, basically) where he was staying was just a popular place for Persians to stay because the owner could speak their language; the guests didn't even know each other. The paranoid secret police raided the place, and arrested everybody there.
They tortured him pointlessly, and handed him a confession written in Turkish. He asked for a translation. They refused. To this day he has no idea what he "confessed" to.
I was at a party at Joan Collins' house last week
Great. I'd love to hear the details. We'll have to take it offline, and I'll tell you some of my own.
