#32: (Cryptographic) hash function

9 lut 2021 | Podcast | programowanie | cryptography | hash functions | security | IT

Sometimes you need to split arbitrary objects into a fixed number of groups. For example, storing a record into one out of many database nodes. Or saving a cookie in a hash table. Or distributing jobs among multiple workers. In all of these cases you later want to know, bucket or worker was chosen. Also, data should be split evenly. You don’t want one node or worker to be overloaded. The above properties are implemented by a so-called hash function. It’s an algorithm that takes arbitrary input and produces fixed-length output. A number. For the same input, often called a message, it always produces the same output, known as a hash. Ideally, different messages should produce a different hash. Even better, two slightly different messages should produce wildly different hash. In practice, hash collisions must happen. After all, we are mapping arbitrarily large messages into a fixed-length hash. Often 32- or 64-bit.

Read more: https://256.nurkiewicz.com/32

Get the new episode straight to your mailbox: https://256.nurkiewicz.com/newsletter

POSTY TEGO AUTORA

#38: HTTP cookies: from saving shopping cart to online tracking30 mar 2021

Podcast | programowanie | cookies | http | web development | IT

#37: Fallacies of distributed computing23 mar 2021

Podcast | programowanie | distributed computing | IT

#36: Microservices architecture: principles and how to break them16 mar 2021

Podcast | programowanie | software architecture | microservices | IT

#35: Reactive programming: from spreadsheets to modern web frameworks2 mar 2021

Podcast | programowanie | reactive programming | IT

#34: SQL joins23 lut 2021

Podcast | programowanie | sql | join | IT

Around IT In 256 Seconds

Around IT In 256 Seconds