"Sorry, sir, I use a password keeper and left the password file at home. I do not have any passwords with me."
That's not a lie, and I would love for them to explain to the judge if they did ever choose to detain you as to how this is not a valid and legal excuse and non-cooperation in any way.
And if you are in doubt about saying something like this, actually use a password keeper, it's a good security practice.
Further, do not bring any electronic device with you.
That's a different issue. When a court orders you to do something, then they would tell you to go back home and get the passwords or allow you the ability to do that. It's not reasonable for border security to expect you to carry your passwords with you at all time for all the services you use. It's a security risk to you, from third parties which might want to steal your data. Like for instance robbers that might force you to divulge your banking information at gun point.
What does "reasonable" have to do with CBP? They can detain you for a surprisingly long time or deport you (complete with banning you from further entry if you're not actually a US national) for failure to comply.
Except I don't have my phone. Why don't I have my phone? Because I don't want it to be stolen and I have no need for it where I am going. I want to unplug and relax, not be on call all the time.
"Sorry, sir, I use a password keeper and left the password file at home. I do not have any passwords with me."
That's not a lie, and I would love for them to explain to the judge if they did ever choose to detain you as to how this is not a valid and legal excuse and non-cooperation in any way.
And if you are in doubt about saying something like this, actually use a password keeper, it's a good security practice.
Further, do not bring any electronic device with you.