Addressing for the first time the issues raised by Apple APPL vs. FBI, President Obama spoke for nearly 12 minutes at South By Southwest Friday night about balancing privacy and security.

Here’s the full transcript:

“All of us value our privacy, and this is a society that is built on a Constitution and a Bill Of Rights and a healthy skepticism about overreaching government power. Before smartphones were invented and to this day, if there is probable cause to think that you have abducted a child, or that you are engaging in a terrorist plot, or you are guilty of some serious crime, law enforcement can appear at your doorstep and say we have a warrant to search your home and can go into your bedroom and into your bedroom drawers to rifle through your underwear to see if there’s any evidence of wrongdoing.

“And we agree on that because we recognize that just like all of our other rights, freedom of speech, freedom of religion, etc, that there are going to be some constraints that we impose in order to ensure we are safe, secure and living in a civilized society.

“Now technology is evolving so rapidly that new questions are being asked, and I am of the view that there are very real reasons why we want to make sure the government can not just wily-nilly get into everybody’s iPhones or smartphones that are full of very personal information or very personal data.

“Let’s face it, the whole Snowden disclosure episode elevated peoples’ suspicion of this. So does popular culture, by the way, which makes it appear as if I’m in the Sit Room and I’m moving things. There’s some half a fingerprint and half an hour later I’m tracking the guy in the streets of Istanbul. It turns out it doesn’t work that way. Sometimes I’m just trying to get a connection.

“I will say, by the way, and I don’t want to go too far afield, but the Snowden issue vastly overstated the dangers to U.S. citizens in terms of spying because the fact of the matter is that our intelligence agencies are pretty scrupulous about U.S. persons, people on U.S. soil. What those disclosures did identify was excesses overseas, with respect to people who are not in this country. A lot of those have been fixed. Don’t take my word for it. There was an independent panel that just graded the reforms that we set up to avoid those charges.

“But I understand that that raised suspicions. So we’re concerned about privacy. We don’t want government to be looking through everybody’s phones willy-nilly without any kind of oversight or probable cause or a clear sense that it’s targeted at someone who might be a wrongdoer.

“What makes it even more complicated is the fact that we also want really strong encryption because part of us preventing terrorism or preventing people from disrupting the financial system or our air traffic control system or a whole other set of systems that are increasingly digitalized, is that hackers, state or non-state, can’t get in there and mess around.

“So we have two values, both of which are important, right?

“And the question we now have to ask is if technologically it is possible to make an impenetrable device or system where the encryption is so strong that there is no key, there’s no door at all? Then how do we apprehend the child pornographer? How do we solve or disrupt a terrorist plot? What mechanisms do we have available that even do simple things like tax enforcement? Because if in fact you can’t crack that at all, and government can’t get in, then everybody’s walking around with a Swiss bank account in their pocket. So there has to be some some concession to the need to be able to get to that information somehow.

“Now what folks who are on the encryption side will argue is any key whatsoever, even if it starts off as just being directed at one device, could end up being used on every device. That’s just the nature of these systems. That is a technical question. I am not a software engineer. It is, I think, technically true, but i think it it can be overstated.

“So the question now becomes, we as a society, setting aside the specific case between the FBI and Apple, setting aside the commercial interests, the concerns about what the could Chinese government do with this even if we trust the US government, setting aside all these questions, we’re going to have to make some decisions about how we balance these respective risks. And I’ve got a bunch of smart people sitting there talking about it, thinking about it. We have engaged the tech community aggressively to help solve this problem.

“My conclusion so far is that you cannot take an absolutist view on this. So if your argument is strong encryption no matter what, and we can and should create black boxes, that I do not think strikes the balances we’ve struck for 200 or 300 years and it’s fetishizing our phones above every other value. And that can’t be the right answer. I suspect the answer will come down to how can we create a system where the encryption is as strong as possible, the key as secure as possible, it’s accessible by the smallest number of people possible, for a subset of issues that we agree are important. How we design that is not something I have the expertise to do. But I caution…

“I am way on the civil liberties side of this thing. I anguish a lot over the decisions we make in terms of how we keep this country safe, and I am not interested in overdrawing the values that have made us an exceptional and great nation simply for expediency. But the dangers are real. Maintaining law and order in a civilized society is important. Protecting our kids is important. And so I would just caution against taking an absolutist perspective on this.

“Because we make compromises all the time. You know, I haven’t flown commercial in a while. But my understanding is that it’s not great fun going through security. But we make the concession. It’s a big intrusion on our privacy, but we recognize it as important. We have stops for drunk drivers. It’s an intrusion, but we think it’s the right thing to do.

“And this notion that somehow our data is different and can be walled off from those other trade-offs we make, I believe is incorrect. We do have to make sure, given the power of the Internet and how much our lives are digitalized, that it is narrow, and is constrained, and that there’s oversight.

“I’m confident that this is something that we can solve. But we’re going to need the tech community, the software designers, the people who care deeply about this stuff to help us solve it. Because what will happen is if everyone goes to their respective corners and the tech community says ‘Either we have strong, perfect encryption or else it’s Big Brother and an Orwellian world,’ what you’ll find is that after something really bad happens, the politics of this will swing, and they will become sloppy, and rushed, and it will go through Congress in ways that have not been thought through. And then you really will have dangers to our civil liberties because the people who understand this best, who care most about privacy and civil liberties, have sort of disengaged or taken a position that is not sustainable for the general public as a whole over time.”

You can watch President Obama’s full performance here. His remarks about encryption begin at the 37:00 mark;