PHP code example of devilhot / mcrypt

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

    

devilhot / mcrypt example snippets



Devil\Mcrypt;
//加密
$s = Mcrypt::encrypt('1232');
var_dump($s);
//解密
$s = Mcrypt::decrypt($s);
var_dump($s);