B
B
BlackWolf2018-03-08 00:07:35
PHP
BlackWolf, 2018-03-08 00:07:35

Is it safe to hash passwords like this?

Is this password hashing secure?

$text = 'password';
$hash = sha1(sha1(md5(sha1(sha1(md5(sha1(sha1(md5(md5(sha1(md5(sha1(($text))))))))))))));
echo $hash;

Is it possible to pick up the received hash from dictionaries? Or pick it up some other way? There is no such hash on websites and in Google. (Maximum offer triple md5 or sha1). Or does such hashing make no sense?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rsa97, 2018-03-08
@blacknightwolf

Why reinvent the wheel when password_hash() has been around for a long time

A
asd111, 2018-03-08
@asd111

Insecure because there have already been successful sha1 hacks. In essence, you have made a complex sha1 hash.
You need to use password_hash(). It was invented specifically for hashing passwords.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question