1.在Navicat导出要查看的密码连接


打开在线php工具
http://www.dooccn.com/php5.4/

运行下面代码:


```php
<?phpnamespace FatSmallTools;
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);}
}use FatSmallTools\NavicatPassword;//需要指定版本,11或12//$navicatPassword = new NavicatPassword(12);$navicatPassword = new NavicatPassword(11);//解密
$decode = $navicatPassword->decrypt('A260FAB705BFD9DA6B4E41686A31');
echo $decode."\n";?>
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210618135756825.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1lYV2lr,size_16,color_FFFFFF,t_70)

Navicat连接成功忘记密码-查看密码相关推荐

  1. 网页自动保存的密码忘记 如何查看密码

    网页自动保存的密码忘记 如何查看密码 查看网页自动保存的密码 查看网页自动保存的密码 有时候一些经常需要登录的网页,我们会选择保存密码或者网页自动记住密码,直接复制又没法复制,下面介绍一种简单的查看密 ...

  2. navicat连接mysql忘记密码_navicat忘记密码怎么办

    navicat忘记密码怎么办? 1.关闭正在运行的MySQL服务:控制面板 →管理工具→服务→MySQL56(本人安装版本为mysql_5.6.16_32_msi) 2.打开DOS窗口,转到mysql ...

  3. WIFI:1.不使用第三方软件搞定WiFi热点(用代码) 2.win连接的WiFi查看密码3.同路由器限制他人网速(很多路由器软件就行,比如TP-LINK的官方软件功能就很OK,不必使用第三方软件))

    刚学的这个,我后续再补充一些相关原理吧,现在不是很会讲这个(其实这些....在路由器的手机APP中功能更全,进行的操作也更多) 第一个知识点搞WiFi 第一步: netsh wlan set host ...

  4. 如何查看计算机用户的密码,电脑密码如何查看? 教您查看方法

    很多用户的电脑都设置了win7登录密码,可是我们忘记密码的时候,要如何查看win7的登录密码呢?电脑里那么多重要的文件,如果忘记了win7登录密码我们可就惨了.大家不要着急,今天,小编就来手把手教大家 ...

  5. Linux虚拟机安装Mysql,并使用Navicat连接

    一.目的 安装msql,并设置可以远程访问,使用Navicate数据库管理软件进行mysql数据库管理. 二.Linux虚拟机安装mysql并设置允许远程访问 1.查看知否已有MySQL输入:yum ...

  6. 【SDX62】WCN685X hostapd配置WPA2/WPA3混合模式,WPA3连接成功,只支持WPA2的设备连接失败问题分析及解决方案

    问题描述 配置WiFi加密为WPA2/WPA3,只支持WPA2的终端无法连接成功 问题分析 查看配置文件 driver=nl80211 bridge=bridge0 interface=wlan0 h ...

  7. Navicat 连接Oracle数据库提示cannot create oci handles问题解决方法

    Navicat 连接Oracle数据库提示cannot create oci handles问题解决方法 早起登陆本地连接Oracle 数据库发现报错连接不上 显示如下图所示 解决办法 更新oci.d ...

  8. 使用Navicat 连接oracle “ORA-03135: Connection Lost Contact”

    点击Navicat ---工具--选项--其他--OCI 配置OCI library(默认路径是错误的):    oracle安装目录\BIN\oci.dll 配置SQL*Plus: oracle安装 ...

  9. navicat连接mysql报错:client does not support authentication protocal requested by server

    场景: mysql version: 分析:mysql搭建成功之后没有给localhost赋权 解决方法: 1.通过root用户连接mysql 2.执行以下命令: mysql>alter use ...

最新文章

  1. 完美的优化目标,人工智能的盲点
  2. 求一个指定点对的路径上的最大边权或最小边权(转)
  3. stanford coursera 机器学习编程作业 exercise 3(逻辑回归实现多分类问题)
  4. 全球四大农业贸易数字化-丰收节贸易会:谋定粮食区块链
  5. .net core 与ELK(2)安装Elasticsearch可视化工具
  6. 用函数式编程,从0开发3D引擎和编辑器(三):初步需求分析
  7. 【开源】简单4步搞定QQ登录,无需什么代码功底【无语言界限】
  8. Bootstrap Table配置
  9. 内外分离接口依赖及UIScrollView知识点
  10. python语言程序设计实践教程答案实验五_Python程序设计实验五
  11. 编好的C语言程序怎么放记事本上运行,怎么用记事本运行程序
  12. 进销存excel_Excel做管理实在不好用,有没有免费的进销存软件?
  13. 单层感知器->BP算法详细推导
  14. Linux默认的系统管理账号是(),Linux系统管理用户账号详解
  15. UA MATH523A 实分析3 积分理论例题 Fubini定理计算简单一元定积分的一个例题
  16. 单元测试总结反思_单元测试反思300字
  17. Gilt如何将微服务部署到AWS环境,介绍ION-Roller
  18. fastq转化成fasta格式
  19. PS教程:5种把图片变成黑白色的方法
  20. acwing 297. 赤壁之战 树状数组优化DP 寒假集训

热门文章

  1. 插入数据,已存在则不插入
  2. javascript面向对象技术基础(四)
  3. Asp.net 关于错误提示 类型“XXX1”在未被引用的程序集中定义,必须添加对程序集XXX2的引用...
  4. 《深入PHP:面向对象、模式与实践》(二)
  5. 解决jquery的scrollTop()置顶的浏览器兼容
  6. php基本功之_get(),_set()的用法
  7. tab使用 TabActivity TabHost Tabspec常用方法
  8. 写MySQL存储过程实现动态执行SQL
  9. moofs分布式存储
  10. 巧妙的查看FORM中的 LOV查询语句