PHP code example of mirrorgdit / php-encdec

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

    

mirrorgdit / php-encdec example snippets


composer 



use mirrorgdit\encdec\Encdec;

$decStr = Encdec::dec2any("18612345678");
$anyStr = Encdec::any2dec($decStr);

echo "将手机号码加密后:".$decStr;
echo "<br>";
echo "将加密后的串解密:".$anyStr;