I am travelling in a country which does not respect human rights. At the border, they security can simply take my phone and/or laptop and force me to either unlock it, or they somehow hack in and access my files (exploits, etc. - it does not matter for the example how access is gained).