PHP code example of tianhe1986 / fatsmalltools

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

    

tianhe1986 / fatsmalltools example snippets




use FatSmallTools\NavicatPassword;

//需要指定版本,11或12
$navicatPassword = new NavicatPassword(11);
//$navicatPassword = new NavicatPassword(12);

//加密
$encode = $navicatPassword->encrypt('123456'); // verstion 11 15057D7BA390, version 12 833E4ABBC56C89041A9070F043641E3B

//解密
$decode = $navicatPassword->decrypt('15057D7BA390');
//$decode = $navicatPassword->decrypt('833E4ABBC56C89041A9070F043641E3B');