I gave the example of the U.K., a dystopian privacy violator. The U.K. is in Europe.
The entirety of Europe would not come close to making a majority of countries. Even if I grant you the "entirety of Europe", I bet I'm still right that most (i.e., more than half) of countries reserve the right to search your device at the border, and will compel you to give the password.
In the U.S., I believe you are covered by your 5th Amendment self-incrimination protections. I have some recollection that there are situations where authorities will compel you, like if you're not the one being accused of the crime.
The entirety of Europe would not come close to making a majority of countries. Even if I grant you the "entirety of Europe", I bet I'm still right that most (i.e., more than half) of countries reserve the right to search your device at the border, and will compel you to give the password.
For instances where the authorities wish to suspect you of a crime, looks like France was prepared to compel you to give a password in 2022: https://www.fairtrials.org/articles/news/french-court-rules-...
EU-wide, 2024: https://www.politico.eu/article/police-can-access-mobile-pho...
In the U.S., I believe you are covered by your 5th Amendment self-incrimination protections. I have some recollection that there are situations where authorities will compel you, like if you're not the one being accused of the crime.