In the context of the discussion, I don't know what you are getting at here.
But compelling someone to say or type in a password is something where they could assert the 5th. If the police find the password written down on a piece of paper and then type it in themselves over the protest of the defendant, that is not a 5th amendment violation. That's just using a piece of physical evidence.
Outrageous. This is taking away the defendant’s rights. Nobody can ever believe that he made this decision if his own free will.
This was my speculation on how I imagine it could possibly happen, as you say you have seen it written about. I have never seen it happen as a condition this way, but if you provide more detail I can be more precise in answering.
But if it is say in another hypothetical, a condition on a deferred sentence, then at that point guilt has already been established and a the deferment is an alternative option from the baseline of prison. Again, some specific links to this happening would really help sort what it is you're seeing.
In the context of the discussion, I don't know what you are getting at here.
I was implicitly asking if it would be any different then, in your legislation. For example, can they ask him for the paper where the password is written?