Customs and Border Protection
Numerous concerns have been raised regarding the broad powers that will be granted to preclearance officers under the preclearance bill. Critics of the preclearance bill say that it goes too far and that Canada has given up too much of its sovereignty.
Preclearance allows all necessary customs and immigration inspections to be completed before departure, while the traveller is still in Canada, and the powers that U.S. border officers exercise under Canadian law are governed by the Canadian Bill of Rights, the Canadian Human Rights Act and the Canadian Charter of Rights and Freedoms.
There are already some technical experts suggesting you use duress passwords that wipe your device, but I would not recommend that -- that could have negative affects if you are considered to be tampering with evidence, or obstruction. I suggest you are better off in a position where you do not know your password, or exercise silence if in Canada.
If the United States already accepts passport cards and EDLs as passport alternatives for border crossing to Canada, couldn't other options be explored to allow our border security personnel to quickly confirm traveler identities, using convenient devices many of us carry with us every day?