From f5248d8ac2fd26d57b3c614bd6684b0e61277e35 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 23 Dec 2023 16:09:03 +1100 Subject: [PATCH] Add RSA encryption/decryption helper --- app/Helpers/Encrypt/Secure.php | 41 ++++++++++++++++++++++++++++++++++ config/ninja.php | 6 ++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 app/Helpers/Encrypt/Secure.php diff --git a/app/Helpers/Encrypt/Secure.php b/app/Helpers/Encrypt/Secure.php new file mode 100644 index 000000000000..041fcc700230 --- /dev/null +++ b/app/Helpers/Encrypt/Secure.php @@ -0,0 +1,41 @@ + [ 'secret' => env('CLOUDFLARE_SECRET', null), ] - ] + ], + 'encryption' => [ + 'public_key' => env('NINJA_PUBLIC_KEY', false), + 'private_key' => env('NINJA_PRIVATE_KEY', false), + ], ];