What is Encryption and Hashing and what is the difference

Encryption and Hashing

Encryption and Hashing are two different concepts but they both change one thing (eg text) into a harder to read version.
Hashing puts an object through a formula to make it into a String that represents the object. Such examples are MD5, SHA1, SHA2 and SHA3. MD stands for "Message Digest" and SHA stands for "Secure Hash Algorithm".

Hashing is generally used as checksums for files. Some websites will include a checksum for a file, the idea is that you will check your file to see if it has the correct checksum. If you find you have the correct checksum then you know the file is how it was intended by the author and it has not been tampered with by someone malicious.

MD5 and SHA0 is currently considered insecure as there have been "collisions" found in the hash. This means that different files, when hashed, will come out with the same hash, thus breaking the point of hashing and possibly allowing someone to replace data and have it appear the same. The newer the hashing algorithm used, the more likely it is secure.

Encryption is used to make data secure by changing and obfuscating the bytes. An encryption algorithm should be able to make the data unreadable when encrypted and be able to be changed back using either the same pattern or a new one designed to do so. They generally use an algorithm along side a password, so the same algorithm can be used for multiple people with different passwords to make the data different based on the password.