Man jailed until he unlocks encrypted hard drives in child abuse images case
theguardian.com
theguardian.com
It would have been more interesting if he had claimed to have forgotten the password. Even though no one would believe he had really forgotten it, you are then placing someone in jail indefinitely until they do something that they claim is impossible to comply with.
Can you jail someone for refusing to comply with a request that is not possible for them to comply with? I would suggest it is not moral to do that.
But the fact everyone knows he really can comply, but you cannot prove that he can comply, adds the interesting complication.