This isn't how the rulings involving phone passwords has worked out. The supreme court has not ruled on this question so each state has its own interpretation of the fifth amendment here. Some states have found that the fifth amendment provides no protection for passwords, others have found that the fifth amendment does protect passwords, but only if you have refused to give any evidence from the locked device. Once you give some evidence from the device I believe every state says you can be forced to give up your password.