What is hashing in data structures?

Hashing is basically used for searching a key in an array.