M
M
Maxla932016-12-14 14:07:05
JavaScript
Maxla93, 2016-12-14 14:07:05

How to make the required md5 from a string and a number?

There is a number 0.333 = md5: cf3567ceb9cc35aaa3a550227c77a026
I need to get the same hash with the number 0.25, to get the hash they use some string строка:0.25 > конвертируют в md5
. What is this string? and how to make it so that when adding a string and a number, the desired hash comes out?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Aksentiev, 2016-12-14
@Sanasol

It's called collision.
To get the same hash, you need to find a collision.
Only for this you need to brute force, all in a row.
Go through millions or billions of options.
Or use smart algorithms to generate collisions.
https://en.wikipedia.org/wiki/Collision_attack#Cho...

R
Rsa97, 2016-12-14
@Rsa97

Brute force. You generate different strings and count the hash. If you matched the given - you're in luck. EMNIP, there are no algorithms for accelerated prefix selection for MD5.

D
Dmitry, 2016-12-22
@rudimo

https://www.npmjs.com/package/md5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question