If you use Arkel panniers they come with a locking metal tab that you can lock to the rack. Having Rain covers on your panniers when leaving the bike for a few minutes locked up also is a good idea. If they are difficult to get into because of the rain cover then you are less likely to have your stuff stolen.