And if you actually don't know the password? No organisation wants to be public about torturing a good person, so they get stuck in a black site for years because they can't be easily released / reported on anymore. (this is actually what's happening - not regarding passwords, but "terrorists with intel")
1. Is not helpful or useful even if, by chance, accurate information is given [1,2].
2. Hurts our national security [2].
3. Is unnecessary. Given that torture is one of the most harmful options to pick from, it's likely there are other, less harmful options available, and if so, the logical and ethical action is to pursue those instead.
On that third point I challenge you to prove me wrong. You won't be able to, however, because we have no meaningful oversight of these practices.
[1] https://news.ycombinator.com/item?id=9867266 [2] https://news.ycombinator.com/item?id=9868400
But I am also practical. Looking at the big picture in the long term, I recognize that people in power will face very difficult decisions. I recognize that the world is an ugly complicated place and the best leaders making the best decisions will have to take morally reprehensible actions.
If you rally against it, make absolute laws against it, enforce them perfectly with the most terrible punishments – it's still going to happen. People are still going to make those choices.
But if you are capable of even the slightest sympathies to the realities of the world – you might be able to minimize the damages.
Moral absolutes and prohibitions don't work. You don't design bridges and airplanes not to fail, you design them to fail well.
It is not a defensive of horrible acts, but a recognition of the tiniest exceptions. The arts and literature are full of these topics probing questions about ethically wrong actions being the right decision, and they have a point. Rarely, but surely. There's a wide gulf between never and almost.
https://en.wikipedia.org/wiki/Hanns_Scharff
The corollary is that if prisoners are being tortured, the aim is not to get information from them.
Torture is very effective when you are certain the subject actually knows the target information and the information is easily verifiable.
For example, I have a copy of your encrypted hard drive (a copy to prevent self-destructs) and I beat you with a rubber hose until you give me a password that works. This is pretty simple and obviously effective. The ease of verification and quick consequences eliminates the value of lying. If I'm mistaken and it isn't your hard drive, this is treated as a separate failure.
I can even see (a very small number of) morally justifiable situations in which this is acceptable.
There's a difference when you can't be certain the subject knows the information you want – or if that information isn't easily verifiable. (Where's the leader of your cell going to be next Thursday?)
It's often the case that being nice to folks is a whole lot more effective. Especially with the "death to America" kinds of subjects. Kind words, a soft bed, and a hot meal given to a person who was raised in an environment where Americans were believably depicted as monsters can do a lot to make a person cooperative. Especially if you show it as an opportunity to 'get out'. You can hear compelling stories to this effect in many places.