I agree with the overall idea that this is an interesting/problematic case, but I think the discussion would be better served if we stopped assuming that the authorities here are morons. No, forgetting your password is not a lifetime sentence. No, not knowing the password for an item you've never seen is not a lifetime sentence either. Refusing to obey a judge's order, however, will get you in trouble. Again, these p…
Even if you think that chances are high that the guy both is guilty of some crime and remembers the password, that still leaves the "what if he is actually innocent and actually forgot his password" case. Indefinite prison sure seems a hard sentence in the latter case, which you cannot refute beyond reasonable doubt.