Im fine with the search but they have no right to scan my notebook etc.
Im fine with the search but they have no right to scan my notebook etc.
The final decision of entry to a country(at that point) lies with the immigration officer. I imagine you can ask nicely for a review after you've been flown back to your point of origin.
I'll dig up some links, but seizure of non-citizen's computers at US borders is possible and scary. I treat the US border like a hackers conference - take a freshly imaged device, and refresh it on your return.
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.