Encryption is the function of a cipher that transforms usable data into an unreadable form.
It provides confidentiality 1) if a secret is used in the encryption.
There is two class of encryption.