In 2007, Iran produced a pseudo-documentary called “In the Name of Democracy,” which served as a vehicle to highlight what it called confessions of three academic researchers charged with trying to overthrow the state. “They don’t like new ideas to get to Iran,” said a researcher once investigated about his work, who spoke on condition of anonymity for fear of reprisal. “They don’t like social and cultural figures in Iranian society to become very popular.”

In 2001, Ali Afshari was arrested for his work as a student leader. He said he was held in solitary confinement for 335 days and resisted confessing for the first two months. But after two mock executions and a five-day stretch where his interrogators would not let him sleep, he said he eventually caved in.

“They tortured me, some beatings, sleep deprivation, insults, psychological torture, standing me for several hours in front of a wall, keeping me in solitary confinement for one year,” Mr. Afshari said in an interview from his home in Washington. “They eventually broke my resistance.”

The problem, he said, was that he was not sure what he was supposed to confess to. So over the next several months, he said, he and his interrogators “negotiated” what he would say  and, more ominously, whom he would implicate. Once his confession was complete, he said, he practiced it for 7 to 10 days, and then it ran on state-run television.

Three years later, Mr. Memarian, the journalist and blogger, was arrested in another security sweep. He said that his interrogator at first sought to humiliate him by forcing him to discuss details of his sex life, and that when he hesitated, the interrogator would grab his hair and smash his head against the wall. He said the interrogator asked him about prominent politicians he had interviewed, asked if they ever had affairs, and asked if he had ever slept with their wives.

“I was crying, I begged him, please do not ask me this,” said Mr. Memarian, who is in exile now in the United States. “They said if you don’t talk now you will talk in a month, in two months, in a year. If you don’t talk now, you will talk. You will just stay here.”

The pressure was agonizing, he said, as he was forced to live in a small cell for 35 days with a light burning all the time and only three trips to the bathroom allowed every 24 hours. He was forced to shower in front of a camera, he said. At one point the interrogators threatened to break his fingers.