Encryption is a technique that secures data by converting plain text into a cipher format during transmission through the internet. The process uses mathematical algorithms that convert the information into an undecipherable format that can only be accessed using a secret code. The strength of an encryption code is measured by its length, which is determined by the number of bits used, as it is directly proportional to the number of possible codes or combinations.