PKI enhances data security by enabling encryption and digital signatures. Encryption ensures that only authorized parties can read the transmitted data, while digital signatures verify the authenticity and integrity of the data. This dual function helps prevent data breaches and unauthorized access, which are critical in protecting sensitive epidemiological data.