Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I would say the difference is one of intent. In encryption, the objective is to hide the information contained in such a way that third parties cannot get it, but approved second parties can retri...
Answer
#1: Initial revision
I would say the difference is one of *intent.* In encryption, the objective is to hide the information contained in such a way that third parties cannot get it, but approved second parties can retrieve it (with the key). In pursuit of this, security is the primary goal, with performance as a secondary goal. The **intent** of encryption is to hide the data, but eventually be able to recover it. In hashing, the objective is to map incoming data to a pre-determined range of values, with unpredictability and performance as primary goals. No consideration is given to the ability to retrieve the data, but no consideration is given to *avoiding* retrieval of the data. Secondary goals will include distribution of result values, avoiding collisions, etc. The **intent** of hashing is to convert the data into a smaller, simpler form that can be used as a proxy for the original data.