Skip to content

jrafa1607/Hash_Colision-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

🔍 Hash Collision - A Python Example

License: MIT Python Security

📝 Project Description

Hash Collision is an educational project designed to demonstrate the phenomenon of hash collisions—where two distinct inputs produce the identical hash value. By exploring these vulnerabilities in practical scenarios, this project aims to highlight the importance of choosing robust cryptographic algorithms for data integrity and security.


🎯 Objectives

This project provides hands-on examples of hash collisions across different file types, focusing on:

  • File Integrity Testing: Implementing Python scripts to calculate and compare hash values (e.g., MD5, SHA-1).
  • Collision Demonstration: Presenting two pairs of files that share the same hash signature.
  • Algorithmic Analysis: Investigating why certain hash functions are susceptible to collisions.
  • Educational Comparison: Illustrating the difference between distinct files that result in the same digital fingerprint.

📂 Collision Examples

1. Document Collision (PDFs)

  • Description: Two distinct PDF files containing different metadata that resolve to the same hash value.
  • Analysis: Comparison of the binary structure and hash generation results.

2. Image Collision (Visual Assets)

  • Description: Two visually manipulated images to generate an identical hash signature.
  • Analysis: Demonstrating how subtle bit-level modifications can bypass integrity checks.

🛠 Technologies Used

  • Language: Python
  • Main Libraries: hashlib (for hashing), os (for file management).
  • Concepts: Cryptographic Hashing, Collision Vulnerabilities, Binary File Analysis, Data Integrity.

⚖️ Disclaimer

This project is for educational purposes only. Understanding hash collisions is critical for developers to implement secure systems and avoid using deprecated algorithms in sensitive applications.

About

This project provides hands-on examples of hash collisions across different file types

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages