> And people have been compelled to provide passwords in the court of law
You can have encrypted data that accept two different passwords, producing different decrypted data of your choice. This is like the 2nd code that mute the home security alarm when you are forced to do it, but still calls the police.