This is nothing new, doesn't require modern technology, and doesn't even require mass surveillance (Hoover targeted specific individuals for gathering blackmail material).