There is a partial solution to the $5 wrench problem.
It’s called Deniable Encryption
There was one popular implementation of it that I’m aware of, True Crypt Hidden volumes. https://www.howtogeek.com/109210/the-htg-guide-to-hiding-your-data-in-a-truecrypt-hidden-volume/
Basically you have two partitions, and one passphrase for each partition. One of the partitions you put data that you don’t mind going public. The other one you put your private data on. If you are intimidated into giving a password you give up the first password.
One flaw here is that if they somehow know or suspect that you have this type of scheme they will use the $5 wrench to get both passwords out of you. But if they don’t know, it’s impossible for them to know if you have 1 or 2 passphrases. So they would maybe give up after getting the first passphrase and your private data would be safe.
- EDS, a mobile encryption app available on Android, includes plausible-deniability encryption.