Difference between encoding and encryption

Encoding:

  1. Purpose: The purpose of encoding is to transform data so that it can be properly (and safely) consumed by a different type of system.

  2. Used for: Maintaining data usability i.e., to ensure that it is able to be properly consumed.

  3. Data Retrieval Mechanism: No key and can be easily reversed provided we know what algorithm was used in encoding.

  4. Algorithms Used: ASCII, Unicode, URL Encoding, Base64.

  5. Example: Binary data being sent over email, or viewing special characters on a web page.

Encryption:

  1. Purpose: The purpose of encryption is to transform data in order to keep it secret from others.

  2. Used for: Maintaining data confidentiality i.e., to ensure the data cannot be consumed by anyone other than the intended recipient(s).

  3. Data Retrieval Mechanism: Original data can be obtained if we know the key and encryption algorithm used.

  4. Algorithms Used: AES, Blowfish, RSA.

  5. Example: Sending someone a secret letter that only they should be able to read, or securely sending a password over the Internet.

Reference URL: http://danielmiessler.com/study/encoding_vs_encryption/


Encoding transforms data into another format using a scheme that is publicly available so that it can easily be reversed.

Encryption transforms data into another format in such a way that only specific individual(s) can reverse the transformation.

For Summary -

Encoding is for maintaining data usability and uses schemes that are publicly available.

Encryption is for maintaining data confidentiality and thus the ability to reverse the transformation (keys) are limited to certain people.

More details in SOURCE