Encryption is a technique that is used to keep the data secure.  The data is encoded to some level before being sent out of a network by the sender in this process. Only the receiver will be able to decode it. This approach is useful in Blockchain because it simply adds to the overall protection and validity of blocks, making them more stable.