What's concerning about this is he's being compelled by the court to do something that works against his defense. Under Miranda, you don't have to tell the police or prosecution anything at all. That means you should not have to tell the police your password - whether that's in the form of actually typing it, or verbally providing it. This is a clear violation of Miranda as far as I'm concerned. He may be a dirtball, he may not, but it's a bad precedent to set.