1. Intent matters. If you give the password to a Customs and Border Protection agent which deletes all the data, your intent was to deceive them and either delete evidence, or at least fail to comply with their request. CBP has wide powers of search.
2. CBP has broad remit to deny entry to any non-citizen for any and no reason. Even if not illegal to provide a duress password, they can and will send non-citizens back home.
1. Intent matters. If you give the password to a Customs and Border Protection agent which deletes all the data, your intent was to deceive them and either delete evidence, or at least fail to comply with their request. CBP has wide powers of search.
2. CBP has broad remit to deny entry to any non-citizen for any and no reason. Even if not illegal to provide a duress password, they can and will send non-citizens back home.