The police can ask you, but you do not have to give your password. You are never compelled to provide any information to the police upon arrest.