Skip to content

Instantly share code, notes, and snippets.

View guifcoelho's full-sized avatar

Guilherme Freitas Coelho guifcoelho

  • Fortaleza, Brasil
View GitHub Profile
@guifcoelho
guifcoelho / DecryptServiceKeys.php
Created April 21, 2019 22:28
Laravel command to download and decrypt service keys
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Defuse\Crypto\File;
use Dotenv\Dotenv;
class DecryptServiceKeys extends Command{
protected $signature = 'decrypt-service-keys {serviceName} {outputFileName}';
@guifcoelho
guifcoelho / EncryptServiceKeys.php
Last active April 21, 2019 19:05
Laravel command to encrypt Services credentials file
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Defuse\Crypto\File;
use Dotenv\Dotenv;
class EncryptServiceKeys extends Command
{