What is Hashing and How Does It Work?

What does hashing do for the blockchain