PHP code example of imphp / crypt

1. Go to this page and download the library: Download imphp/crypt 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/ */

    

imphp / crypt example snippets


$crypt = new OpenSSLCrypt("aes-256-cbc");
$crypt->setCipherKey($key);
$crypt->setCipherIv($iv);

// Encrypt data
$cipherText = $crypt->encrypt($data);

// Decrypt
$data = $crypt->decrypt($cipherText);



...