B
B
BonBon Slick2016-11-27 13:40:11
Laravel
BonBon Slick, 2016-11-27 13:40:11

Facades\Hash vs md5() Laravel 5.3?

What 's the point of Facades\Hash if there's a standard md5() function ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2016-11-27
@BonBonSlick

It makes no sense if there is no difference between them for you.
But in general md5 is just a hash function. And Facades\Hash provides a wrapper for password methods. Here it is worth comparing with the password_hash function , which seems to be used internally.

A
Alexander Aksentiev, 2016-11-27
@Sanasol

What's the point of {{any function}} if there is a standard function {{any standard function}}?

According to this logic, the framework can be thrown out.

S
Sergey Semenko, 2016-11-27
@abler98

As Maxim said , it uses the password_hash function
https://github.com/laravel/framework/blob/master/s...
And you also need to read the documentation
php.net/manual/ru/faq.passwords.php#faq.passwords ....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question