Its a method to convert text into a text which is not the original to protect information and data.
Encryption was first used in the world war 2. If spies would carry letters with regular text and were caught they will all be in danger so the Germans invented a machine with the Enigma Cipher...