/home/techb158/dev.balacoffee.com/vendor/laravel/passport/src/Console
Edit: /home/techb158/dev.balacoffee.com/vendor/laravel/passport/src/Console/KeysCommand.php (1904B)
option('force')) {
$this->error('Encryption keys already exist. Use the --force option to overwrite them.');
return 1;
} else {
if (class_exists(LegacyRSA::class)) {
$keys = (new LegacyRSA)->createKey($this->input ? (int) $this->option('length') : 4096);
file_put_contents($publicKey, Arr::get($keys, 'publickey'));
file_put_contents($privateKey, Arr::get($keys, 'privatekey'));
} else {
$key = RSA::createKey($this->input ? (int) $this->option('length') : 4096);
file_put_contents($publicKey, (string) $key->getPublicKey());
file_put_contents($privateKey, (string) $key);
}
$this->info('Encryption keys generated successfully.');
}
return 0;
}
}