Ove Lindström wrote:True, but the principle is somewhat the same.
No, it isn't - hashing is a one-way algorithm; it is not possible to get the original data back from a hash. Encryption is a two-way algorithm: you can get the original data back, if you have the key to decrypt it.
Many people are confused about this, and think that hashing is some sort of encryption. Showing an example that does hashing when the question is about encryption only makes the confusion worse.