The director of the National Security Agency on Wednesday vigorously defended once-secret surveillance programs as an effective tool in keeping America safe, telling Congress that the information collected has disrupted dozens of terrorist attacks.

In his first congressional testimony since revelations about the top-secret operations, Army Gen. Keith Alexander said the public needs to know more about how the programs operate amid increasing unease about rampant government snooping and fears that Americans’ civil liberties are being trampled.

“I do think it’s important that we get this right, and I want the American people to know that we’re trying to be transparent here, protect civil liberties and privacy but also the security of this country,” Alexander told a Senate panel.

He described the steps the government takes once it suspects a terrorist organization is about to act — all within the laws approved by Congress and under stringent oversight from the courts. He said the programs led to “disrupting or contributing to the disruption of terrorist attacks,” but he did not give details on the terror plots.

Also Wednesday, Edward Snowden, the former contractor who fled to Hong Kong and leaked documents about the programs, said he would fight any U.S. attempts to extradite him. American law enforcement officials are building a case against him but have yet to bring charges.

“I am not here to hide from justice. I am here to reveal criminality,” Snowden said of the surveillance programs in an interview with the South China Morning Post.

In Washington, Alexander answered senators’ questions in an open session and promised to provide additional information to the Senate Intelligence Committee in closed session today. Director of National Intelligence James Clapper has declassified information on two thwarted attacks — one in New York, the other in Chicago — and Alexander said he was pressing for more disclosures.

But he also warned that revelations about the secret programs have eroded agency capabilities and, as a result, the U.S. and its allies will not be as safe as they were two weeks ago.

“Some of these are still going to be classified and should be, because if we tell the terrorists every way that we’re going to track them, they will get through and Americans will die,” he said, adding that he would rather be criticized by people who think he’s hiding something “than jeopardize the security of this country.”

Alexander said he was seriously concerned that Snowden, a former employee of NSA contraxctor Booz Allen Hamilton, had access to key parts of the NSA network, a development that demands a closer examination of how well the agency oversees contract employees.

Alexander said Snowden was a system administrator who could access key portions of the NSA network.

Members of the House and Senate intelligence panels and key leaders have been briefed on the surveillance programs and have expressed their support for the operations as a valid tool in the terrorism fight.

House Speaker John Boehner, R-Ohio, said Wednesday that the programs are constitutional and “very important to the security of the American people and they help us in a big way to address the terrorist threat that does in fact remain.”

But rank-and-file lawmakers who have not been privy to the details expressed concerns and bewilderment, reflected in the comments of several senators at the hearing and one exchange between Sen. Mike Johanns, R-Neb., and Alexander.

Johanns asked whether the government could see what an individual is searching for through Google, or sending in email.

Alexander said once an individual has been identified, the issue is referred to the FBI.

“The FBI will then look at that and say what more do we need to now look at that individual themselves. So there are issues and things that they would then look at. It’s passed to them,” Alexander said.

“So the answer to the question is yes,” Johanns said.

“Yes, you could. I mean, you can get a court order to do that,” Alexander said.

Johanns said it was imperative for the government to get information about the programs to the American people “because right now we’re all getting bombarded with questions that many of us at the rank-and-file level in the Senate cannot answer.”

While Congress has at least twice renewed laws approving the programs, the disclosure of their sheer scope stunned some lawmakers, shocked allies from nations with strict privacy protections, and emboldened civil liberties advocates who long have accused the government of being too invasive in the name of national security.

Sen. Rand Paul, R-Ky., said he will announce today “legal action against government surveillance and the National Security Agency’s overreach of power.” The American Civil Liberties Union filed its own suit against the program Tuesday.

Recent polling on the issue found Americans troubled by the intrusion but perhaps willing to give the government even more leeway in its efforts to fight terrorism.

A new poll by CBS News and The New York Times found that 58 percent disapprove of the government collecting phone records of all Americans. Yet it also found that 59 percent think the government has struck the right balance or not gone far enough.