If it's a software issue then maybe they do legitimately need a password but i would never hand one over without very careful consideration. And, strange hands on the keyboard of my laptop or phone would be watched very very closely at all times.
I good app would be one that disables the network stack, bluetooth, and cell modem with a separate secure pin.