The purpose of encryption is to protect data confidentiality from unauthorized access.