12/08/2015, 16:34
|
| Colaborador | | Fecha de Ingreso: junio-2013 Ubicación: México
Mensajes: 2.995
Antigüedad: 11 años, 4 meses Puntos: 379 | |
Respuesta: Como usar sha512 sin Salt? El manual es muy claro: Cita: Do you need to a Salt property?
If you use bcrypt, no. Otherwise, yes. All passwords must be hashed with a salt, but bcrypt does this internally. Since this tutorial does use bcrypt, the getSalt() method in User can just return null (it's not used). If you use a different algorithm, you'll need to uncomment the salt lines in the User entity and add a persisted salt property.
__________________ Saludos About me Laraveles
A class should have only one reason to change. |