1. Go to this page and download the library: Download burakdalyanda/cipher-weave 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 BurakDalyanda\CipherWeave\Facades\CipherWeave;
$encrypted = CipherWeave::encrypt('secret message');
$decrypted = CipherWeave::decrypt($encrypted);
use BurakDalyanda\CipherWeave\Contracts\CipherWeaveInterface;
public function __construct(private CipherWeaveInterface $cipher) {}
public function someMethod() {
$encrypted = $this->cipher->encrypt(['data' => 'to encrypt']);
}