Comment

Comment by soVeryTired

I guess the other difference between encryption and hashing is that a hash function need not be one-to-one. Many inputs can result in the same hash, though hopefully it's hard to find collisions.

So a hash function is allowed to destroy information, whereas it's pretty important that an encryption algorithm doesn't!

parent soVeryTired 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton