lundi 14 mars 2016

In laravel 5.0 we use bcrypt , so is bcrypt actually contains salt hashing ? if not how to add salt to the normal authentication method?

This is the code to create the password using the bcrypt .how to add salt ?

public function create(array $data)
{
    return User::create([
        'name' => $data['name'],
        'email' => $data['email'],
        'password' => bcrypt($data['password']),
    ]);
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire