Encryption transforms data into a coded format that can only be decoded by the intended recipient, safeguarding the information from interception or alteration.