Posted in

Laravel – Cambiar la llave de encriptación

Podemos cambiar la encryption key que se usa para proteger las contraseñas fácilmente de la siguente forma. Abrimos consola:

php artisan key:generate

O podemos editar el archivo app.php

/*
o|--------------------------------------------------------------------------
o| Encryption Key
o|--------------------------------------------------------------------------
o|
o| This key is used by the Illuminate encrypter service and should be set
o| to a random, 32 character string, otherwise these encrypted strings
o| will not be safe. Please do this before deploying an application!
o|
o*/

o'key' => 'okjjUsAw8jaW43uVrW3n5EvVnLAxvIM1',

o'cipher' => MCRYPT_RIJNDAEL_128,

Deixa un comentari

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *


The reCAPTCHA verification period has expired. Please reload the page.