Member-only story

Hashing in Python

Mori
7 min readApr 9, 2024

--

Hashing is a fundamental concept in computer science and plays a crucial role in various applications. At its core, hashing involves mapping data of arbitrary size (such as strings, files, or even entire databases) to fixed-size values. These fixed-size values are typically numeric and are known as hash codes or hash values.

The code used in this post is available 👇

Table of Contents

1. Introduction
2. Understanding Hash Functions
3. Common Use Cases for Hashing
4. Implementing Hashing in Python
5. Tips and Best Practices
6. FAQs

1. Introduction

Why Do We Need Hashing?

Hashing provides several benefits:

  1. Data Integrity: Hashing ensures that data remains unchanged during transmission or storage. By comparing hash values before and after data transfer, we can verify whether the data has been altered.

--

--

Mori
Mori

Written by Mori

Date Scientist/Machine Learning Engineer | Passionate about solving real-world problems | PhD in Computer Science

No responses yet