A
A
Alexander2018-01-28 21:55:25
PHP
Alexander, 2018-01-28 21:55:25

What hash functions are most commonly used today?

In some sources they say that it is better not to use the n-th function, in others - on the contrary, and then a whole war begins in the comments. MD5, SHA1, SHA2... which is better?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2018-01-28
@sim3x

php.net/manual/en/faq.passwords.php

S
SagePtr, 2018-01-29
@SagePtr

MD5 - compromised
SHA1 - secure, but there are attacks that allow you to create multiple documents with the same hash, differing only by one block in the middle
SHA256 - currently secure, TLS certificates now use it as a hash function (used to be SHA1)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question