But they cannot go against the instruction they have. I.e. they cannot force you to defecate into your pants just to be sure you are not holding USB flash drive there. Same applies here. They can ask for password, but they cannot force you to actually enter it. Its illegal.