How does this work for employer-provided devices? I'd be violating my employment contract and could be fired for providing customs with my password.
It would be a pretty pointless law if "my employer says I can't" were a defence. I mean, they are targeting organized crime... I'm pretty sure that part of your contract would be invalid in such a case, especially if you were instructed to go to NZ.
Not that I'll give it up without question, especially for something pointless and overreaching like a border search of digital devices, but still.