Skip to content

About

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

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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.

⚖️ Intellectual Property (IP) Notice

All source code, documentation, and research methodologies contained in this repository are the exclusive Intellectual Property of the author. All rights reserved. Use of this content for academic or professional purposes must include proper citation and attribution to the original research.

Copyright © 2026 João Rafael.


About

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

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages