PHP code example of quansitech / qs-php-crypt

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

    

quansitech / qs-php-crypt example snippets


composer 

$key="1234567";
//加密
$plainText = "hello world";
$cipherText = AesCBC::encrypt($plainText, $key);

//解密
$plainText = AesCBC::decrypt($cipherText, $key);