Resolving the conflict between cybersecurity and privacy