When a relationship ends badly, every racy photo or text you shared with your ex becomes a potential security problem.