Until you get to an encrypted file that has such a complex password it would take all of the energy and longer than the heat death of the universe to compute, it's just that you can't open it by force within a suitable timeframe.
does the fifth guarantee some universal concept of mental privacy or does it prevent that information from being used in court?
You can’t take the fifth before a grand jury. I think there is a certain presumption that the actors are gentlemen that the law assumes. If you feel really strongly about that sort of privacy, you’d be well served to not find yourself in a criminal court trial.