Remix.run Logo
p-o 3 hours ago

Hashing is a part of encryption, maybe you are the one who needs to shore up on the topic?

AlotOfReading 2 hours ago | parent | next [-]

A good hash function is surjective. Encryption is bijective. They're very different things.

aipatselarom 3 hours ago | parent | prev [-]

Nice try. However, hashing and encryption are two different operations.

Load this page, https://en.wikipedia.org/wiki/Advanced_Encryption_Standard

Ctrl-F "hash". No mention of it.

Before being pedantic at least check out the url in that comment to get the basics going.

sowbug 2 hours ago | parent [-]

This entire thread should be annihilated, but since you mentioned being pedantic...

You're correct that a pure encryption algorithm doesn't use hashing. But real-world encryption systems will include an HMAC to detect whether messages were altered in transit. HMACs do use hash functions.