D
D
ddddd tttt2019-02-22 03:00:42
Algorithms
ddddd tttt, 2019-02-22 03:00:42

Are there any algorithms for converting a string into a hash of digits with a length of about 20 characters?

Are there algorithms that can convert text into a hash of numbers? The hash is approximately 20 characters long. With the least chance of collision.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rPman, 2019-02-22
@pashaa

20 digits is a 64 bit number, take any bits, you can mix (xor) and there, depending on the number of hash values.

E
EVGENY T., 2019-02-22
@Beshere

Here hashing is implemented according to Laforet's book.

D
Developer, 2019-02-22
@samodum

You take MD5 or any other algorithm, truncate to 20 characters and replace the AF characters with 0-7.
Collisions will be greater, the shorter the hash and the fewer characters used. And there's nothing you can do about it, that's the math

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question