What does "hacking of secure devices" even mean? A device that can be successfully hacked is by definition not secure.
If you want to tackle this issue, get the pornography legislation done with, prosecute distribution of images without consent (with safeguards not to stifle legitimate journalism) and educate people not to create their own kompromat - a nude picture that has not been made cannot be leaked.
Indeed, but I'm not really holding my breath that Uganda is going to change its laws any time soon. Not much you or I can do about this, so education is the next best thing that can make a meaningful difference.
Both of these are true of course. People need to be aware of the dangers online, and learn how to protect themselves from scammers and other predators. But punishing the victim is utterly ridiculous.