Laravel 9: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
iwu
 
mNo edit summary
 
Line 1: Line 1:
Encrypt .env file.
Encrypt .env file.


<source lang="bash">
<syntaxhighlight lang="bash">
$ openssl enc -aes-256-cbc -k secret -P -pbkdf2
$ openssl enc -aes-256-cbc -k secret -P -pbkdf2
salt=624CB53000707D6E
salt=624CB53000707D6E
Line 14: Line 14:
   Cipher ............................................................................................................................... aes-256-cbc
   Cipher ............................................................................................................................... aes-256-cbc
   Encrypted file .................................................................................................................... .env.encrypted
   Encrypted file .................................................................................................................... .env.encrypted
</source>
</syntaxhighlight>

Latest revision as of 07:51, 31 August 2023

Encrypt .env file.

$ openssl enc -aes-256-cbc -k secret -P -pbkdf2
salt=624CB53000707D6E
key=4437EC17F5A69A300142CFE19B1141E9A8F67FF6567459E931A288142F27383F
iv =AE9AF6682A906489384220A1F6092150

$ ./artisan env:encrypt --key=AE9AF6682A906489384220A1F6092150 --cipher=aes-256-cbc

   INFO  Environment successfully encrypted.

  Key ............................................................................................................. AE9AF6682A906489384220A1F6092150
  Cipher ............................................................................................................................... aes-256-cbc
  Encrypted file .................................................................................................................... .env.encrypted