Air passengers arriving in New Zealand could face fines of $5000 if they refuse to hand over passwords and pins to phones.
This "digital strip search" is thought to be the first to be imposed by any country and came into effect on Monday with the 2018 Customs and Excise Act.
Travellers who fail to hand over passwords could be fined, prosecuted and have their device confiscated.
While the act gives officials new powers to force travellers to hand over passwords, there must be a reasonable suspicion against either the device or the carrier before a warrant can be given.
"Customs must now satisfy specific legal thresholds before they can search the digital content of an electronic device when processing passengers or crew," reads the updated Act.