Yes they can charge you/confiscate if you don't cooperate/unlock your data. You might be better off hiding it in plain view, it's not like they're going to do much more than a cursory glance.
Yes they can charge you/confiscate if you don't cooperate/unlock your data. You might be better off hiding it in plain view, it's not like they're going to do much more than a cursory glance.
The EFF says that you can't be required to unlock encrypted files without a court order. https://www.eff.org/document/defending-privacy-us-border-gui...
Whether or not that's a good idea is up to you and certainly (as a non-US citizen) I'd be very reluctant to start making a fuss - if I had anything sufficiently sensitive that a long flight home seemed the less-bad option, I would have just sent it in parallel.
FWIW I'm a Canadian citizen and when returning to that country I refuse, politely, to answer any questions whatsoever (which have become really quite intrusive) on the grounds that there is no legal requirement to answer. It often leads to a customs screen (which is a ten minute delay/irritation) but there, and I assume in the US, there is no right to deny entry to someone holding valid travel documents.