Encryption transforms data with a cryptographic algorithm and a key so that only those holding the matching key can read them. Symmetric methods such as AES use the same key for encryption and decryption, while asymmetric methods such as RSA or elliptic curves work with a public and a private key. A distinction is made between encryption of stored data, for example on hard drives and in databases, and encryption in transit, for example with TLS.
In practice, key management determines the level of security: generating, storing, rotating and revoking keys. The GDPR names encryption explicitly as a safeguard in Art. 32, and under Art. 34(3) notifying data subjects after a breach may be unnecessary if the data were effectively encrypted. A Cryptography Policy brings the rules together (A.8.24 Use of Cryptography).