The trick is to discourage hackers in a way that doesn’t sound like an enticing challenge to their nefarious impulses.