<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Navicat密碼導出解密導入到DataGrip中

      使用Navicat導出密碼:目前使用Navicat17親測有效

      使用php解密代碼

      <?php
      class NavicatPassword
      {
          protected $version = 0;
          protected $aesKey = 'libcckeylibcckey';
          protected $aesIv = 'libcciv libcciv ';
          protected $blowString = '3DC5CA39';
          protected $blowKey = null;
          protected $blowIv = null;
           
          public function __construct($version = 12)
          {
              $this->version = $version;
              $this->blowKey = sha1('3DC5CA39', true);
              $this->blowIv = hex2bin('d9c7c3c8870d64bd');
          }
           
          public function encrypt($string)
          {
              $result = FALSE;
              switch ($this->version) {
                  case 11:
                      $result = $this->encryptEleven($string);
                      break;
                  case 12:
                      $result = $this->encryptTwelve($string);
                      break;
                  default:
                      break;
              }
               
              return $result;
          }
           
          protected function encryptEleven($string)
          {
              $round = intval(floor(strlen($string) / 8));
              $leftLength = strlen($string) % 8;
              $result = '';
              $currentVector = $this->blowIv;
               
              for ($i = 0; $i < $round; $i++) {
                  $temp = $this->encryptBlock($this->xorBytes(substr($string, 8 * $i, 8), $currentVector));
                  $currentVector = $this->xorBytes($currentVector, $temp);
                  $result .= $temp;
              }
               
              if ($leftLength) {
                  $currentVector = $this->encryptBlock($currentVector);
                  $result .= $this->xorBytes(substr($string, 8 * $i, $leftLength), $currentVector);
              }
               
              return strtoupper(bin2hex($result));
          }
           
          protected function encryptBlock($block)
          {
              return openssl_encrypt($block, 'BF-ECB', $this->blowKey, OPENSSL_RAW_DATA|OPENSSL_NO_PADDING);
          }
           
          protected function decryptBlock($block)
          {
              return openssl_decrypt($block, 'BF-ECB', $this->blowKey, OPENSSL_RAW_DATA|OPENSSL_NO_PADDING);
          }
           
          protected function xorBytes($str1, $str2)
          {
              $result = '';
              for ($i = 0; $i < strlen($str1); $i++) {
                  $result .= chr(ord($str1[$i]) ^ ord($str2[$i]));
              }
               
              return $result;
          }
           
          protected function encryptTwelve($string)
          {
              $result = openssl_encrypt($string, 'AES-128-CBC', $this->aesKey, OPENSSL_RAW_DATA, $this->aesIv);
              return strtoupper(bin2hex($result));
          }
           
          public function decrypt($string)
          {
              $result = FALSE;
              switch ($this->version) {
                  case 11:
                      $result = $this->decryptEleven($string);
                      break;
                  case 12:
                      $result = $this->decryptTwelve($string);
                      break;
                  default:
                      break;
              }
               
              return $result;
          }
           
          protected function decryptEleven($upperString)
          {
              $string = hex2bin(strtolower($upperString));
               
              $round = intval(floor(strlen($string) / 8));
              $leftLength = strlen($string) % 8;
              $result = '';
              $currentVector = $this->blowIv;
               
              for ($i = 0; $i < $round; $i++) {
                  $encryptedBlock = substr($string, 8 * $i, 8);
                  $temp = $this->xorBytes($this->decryptBlock($encryptedBlock), $currentVector);
                  $currentVector = $this->xorBytes($currentVector, $encryptedBlock);
                  $result .= $temp;
              }
               
              if ($leftLength) {
                  $currentVector = $this->encryptBlock($currentVector);
                  $result .= $this->xorBytes(substr($string, 8 * $i, $leftLength), $currentVector);
              }
               
              return $result;
          }
           
          protected function decryptTwelve($upperString)
          {
              $string = hex2bin(strtolower($upperString));
              return openssl_decrypt($string, 'AES-128-CBC', $this->aesKey, OPENSSL_RAW_DATA, $this->aesIv);
          }
      };
       
       
      //需要指定版本兩種,11或12
      //$navicatPassword = new NavicatPassword(11);
      //這里我指定的12的版本,原先指定的11,執(zhí)行之后的密碼是亂碼
      $navicatPassword = new NavicatPassword(12);
       
      //解密
      //$decode = $navicatPassword->decrypt('5658213B');
      $decode = $navicatPassword->decrypt('CB0F3C3CC10B9B986D5FC2A9D26F99CEDB8DE05531BA85E1C860BA6C49CA6A30');
      echo $decode."\n";
      ?>
      
      

      然后再php環(huán)境中運行:https://www.w3cschool.cn/tryrun/runcode?lang=php

      修改最后紅線中的密碼,替換為導出的密碼:查看結果。

      posted @ 2024-12-28 14:21  748573200000  閱讀(302)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 天干天干夜天干天天爽| 日韩中文字幕亚洲精品| 成人国产亚洲精品天堂av| 国产成人a在线观看视频免费| 国内揄拍国内精品少妇国语| 深夜精品免费在线观看| 四虎成人在线观看免费| 久热这里只国产精品视频| 免费可以在线看a∨网站| 悠悠人体艺术视频在线播放| 亚洲高清无在码在线无弹窗| 少妇人妻偷人精品免费| 人妻av无码系列一区二区三区| 精品福利视频一区二区三区| 欧美亚洲精品中文字幕乱码| 无码国产偷倩在线播放| 国产精品一码在线播放| 亚欧洲乱码视频在线观看| 精人妻无码一区二区三区| 国产免费高清69式视频在线观看| 熟女人妻视频| 免费无码久久成人网站入口| 欧美综合人人做人人爱| 大尺度国产一区二区视频| 亚洲高清WWW色好看美女| 祁阳县| 国产无遮挡又黄又大又爽| 7m精品福利视频导航| 精品91在线| 久久久国产成人一区二区| 亚洲综合无码日韩国产加勒比| 五月丁香六月综合缴清无码| 亚洲av高清一区二区三| 欧美黑人大战白嫩在线| 国产精品美女黑丝流水| 97视频精品全国免费观看| 午夜高清福利在线观看| 国内少妇偷人精品免费| 乌克兰丰满女人a级毛片右手影院 人妻中文字幕不卡精品 | AV喷水高潮喷水在线观看COM| 亚洲人成电影网站 久久影视|