There are many jurisdictions in the US (not all!) where you can't be compelled to turn over a password in a criminal case that's specifically against yourself. But that's a narrow exception to the general principle that a court can order you to give them whatever information they'd like.
It's a federal constitutional protection to not be compelled to turn over your password. If you think a jurisdiction can compel you, I would like references.