M
M
magary42018-02-05 18:54:00
PHP
magary4, 2018-02-05 18:54:00

How to change the default password hashing algorithm?

The module that is responsible for registering users uses the PASSWORD_HASH_PHP_DEFAULT constant, from the name of which it is clear that the default algorithm specified in PHP will be used,
but how can it be changed to md5?
in the webserver settings or php.ini or what?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor Vorotnev, 2018-02-05
@HeadOnFire

how can i change it to md5?

God forbid, don't use MD5 for passwords, ever.

A
Alexander Toropov, 2018-02-05
@nefone

To create an MD5 hash, use the md5() function :

//выведет md5 хэш.
echo md5('password');

However, it is not recommended to use this feature to save passwords.

C
CityCat4, 2018-02-06
@CityCat4

MD5 is hacked . And for a long time. It's like not encrypting at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question