1. Go to this page and download the library: Download helppc/encryption-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use HelpPC\EncryptionBundle\Encryption\Decryptor;
use HelpPC\EncryptionBundle\Encryption\Encryptor;
public function __construct(
private Encryptor $encryptor,
private Decryptor $decryptor,
) {
}
use Symfony\Component\DependencyInjection\Attribute\Target;
public function __construct(
#[Target('vault')] private Decryptor $vault,
#[Target('partner_inbox')] private Encryptor $partnerInbox,
) {
}
use HelpPC\EncryptionBundle\Encryption\AdditionalDataDecryptor;
use HelpPC\EncryptionBundle\Encryption\AdditionalDataEncryptor;
public function __construct(
private AdditionalDataEncryptor $aadEncryptor,
private AdditionalDataDecryptor $aadDecryptor,
) {
}