

“disarming of Hamas” Non starter, never give-up arms. It just gives the oppressor complete control and will only mean that Israel will fully take all the land and murder the people much much easier. Settlers will be able to swarm in and murder even more Palestinians. If your murder is going to happen anyway, then take as many of them as you possibly can.
If they are willing to torture you to get the data. Then there is also a very real chance that you would still get the same treatment or just killed even if you give the password.