You Have a Right to Your Data at the Border

Nowadays, citizens and noncitizens alike have the pleasure of possibly having their personal devices searched and even retained for weeks on end by Customs and Border Patrol (CBP) or Immigration and Customs Enforcement (ICE) agents. That means your emails, texts, banking information, photos—anything and everything you access on your electronic device—is fair game for agents as you make your entry into the country.

Source