Devils advocate, travel back to the 1950s. The government searches your home and takes a letter or other document that is clearly written in code. Can/would they jail you as in the current case until you decode it? And without even charging you with any other crime first?
At what point is "I used a one time pad" or "I don'remember" sufficient? I'm sure all of us have at least once (probably many) times forgotten a password, even for something relatively important.
The 'lock' interpretation also fails. It is obfuscation, they have executed their search warrant and they possess the obfuscated data. Can they force you to translate your documents written in some obscure language because they can find nobody else willing to do so for them?
Re: Orin Kerr - his argument fails as the government can execute their own search warrant to take documents they believe you to have - they need not rely upon you to voluntarily provide them at their request.