Coder Social home page Coder Social logo

hash-collision-finder's People

Contributors

giovanifss avatar

Watchers

 avatar  avatar  avatar

Forkers

gitcollect

hash-collision-finder's Issues

Limited Memory

For desired collision of 15 bytes, 1073741824 iterations are needed. This amout of memory needed is not available.
The 1073741824 is the number of iterations needed to find a collision in 15 bytes in sequence. As this program search for collision of bytes at any position in the hash, a mathematic adjust is needed to reduce this value.

Remove code repetition

Update makefile in a way that only one md5 and generator c file will be needed. Nowdays each implementation have the same files copied.

Power operation limit

Given that pow() return a double type. An external implementation of power operation is needed.
In 4cfc3de a basic implementation was tested, returning a unsigned long long int type, which suports from 0 to 2^64 -1 numbers.
The problem is that for a full collision in md5, 2^64 iterations are needed (According to birthday attack). This number is out of range for unsigned long long int.
Or a new implementation with a different approach should be used, or a workaround for this specific number must be implemented.

Get options as parameters

Make the program receive options such how many bytes are wanted in collision as parameter. This will enable to write scripts for multiple tests.

Implement calculation of iterations

Based on "Hash Function Balance and its Impact on Birthday Attacks" paper, implement a function in generator.c to calculate how many iterations are needed to find a collision.

Update algorithm to search collision in the beggining of the hash digest

Currently, the algorithm search for collision at any location, taking only the number of bytes that must be equal. Those bytes can be in any location in the digest.
As most of the papers that use partial collision to create an attack to the hash function searches a block in the beginning of the hash, we will update our algorithm.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.