Encryption is the conversion of data from a readable format into an encoded (encrypted) format. A key or password is required to decrypt the data in order to read or process it. This can be used in cyberattacks such as ransomware but can also be used as a security technique to protect digital data confidentiality.