US case law is not settled on that matter, and some courts have concluded that disclosing a password is testimonial and therefore covered by the fifth amendment. Courts that have ruled the other way have usually done so under narrow exceptions.
Generally, most lawyers would advise their clients to Stay away from an area or activities that can be described this way - because it’s a really good way to be ‘right but dead’ (really, bankrupt or in jail or whatever).