1. Go to this page and download the library: Download tourze/tls-crypto-symmetric 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/ */
interface CipherInterface
{
public function getName(): string;
public function getKeyLength(): int;
public function getIVLength(): int;
public function getBlockSize(): int;
public function encrypt(string $plaintext, string $key, string $iv, ?string $aad = null, ?string &$tag = null): string;
public function decrypt(string $ciphertext, string $key, string $iv, ?string $aad = null, ?string $tag = null): string;
}