Encryption is the conversion of data in such way that it cannot be read or understood without knowing how the data is encoded. Encryption is used to ensure privacy, as a security measure to protect data, to protect software scripts, and also for communication by military and secret services.