当前位置: 首页 > news >正文

惠州h5网站建设深圳百度代理

惠州h5网站建设,深圳百度代理,漳州住房和城乡建设部网站,怎么建立自己的网站免费navicat如何查看数据库密码? navicat 用久了有些数据库连接密码忘记了,怎么办? 软件提供了导出链接功能: 文件----导出链接----记得勾选导出密码 打开文件,查看密码字段 需要解密使用 解密 - 使用PHP程序进行解密 …

navicat如何查看数据库密码?

navicat 用久了有些数据库连接密码忘记了,怎么办?

软件提供了导出链接功能:

文件----导出链接----记得勾选导出密码

打开文件,查看密码字段

需要解密使用

解密 - 使用PHP程序进行解密

<?php// Navicat 11及以前的版本
//$navicatPassword = new NavicatPassword(11);// Navicat 12及以后的版本
$navicatPassword = new NavicatPassword(12);$decode = $navicatPassword->decrypt('9F6B3EE5AE4F53AD8EA70079846F73EDE5B83C29B148BF77DFA988BCCDC3A918');
echo $decode . "\n";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);}
}

解密 - 使用PHP 在线工具进行解密

php在线运行,在线工具,在线编译IDE_w3cschool

选择你自己的Navicat版本,把代码中的密码替换为你自己connections.ncx文件中的密码,然后执行即可输出

http://www.15wanjia.com/news/39363.html

相关文章:

  • 个人信息网站建设的心得体会外包网络推广公司怎么选
  • 做直播网站需要证书吗网络销售怎么做才能有业务
  • php教育网站开发工作关键词搜索
  • 方维制网站软文广告图片
  • 网站地域分站怎么做抖音关键词排名
  • 软件开发入门四川seo整站优化
  • 做镜像网站seo什么意思简单来说
  • 高校宣传网站建设深圳网络推广大师
  • 网站策划中规划预测怎们做百度电话号码查询
  • 企业网站建设需求调查广告推广计划
  • 做猎头顾问 经常看哪些网站网络营销服务外包
  • 做网站去哪个平台北京最新疫情
  • 怎么做服装外贸网站免费做推广的网站
  • 科技企业网站源码下载湖南最新消息今天
  • 网络服务器的价格网站排名优化查询
  • 建设生鲜网站价格外贸推广渠道有哪些
  • 网页设计基础知识点手机seo排名软件
  • seo网站营销推广慧达seo免登录发布
  • 高端网站建设天软科技网页百度
  • uv推广平台白银网站seo
  • 网站买空间的价格百度小说风云榜总榜
  • 做网站秒杀软件用什么语言好百度广告大全
  • 武汉响应式网站定制开发台湾新闻最新消息今天
  • wordpress 做网课网站互联网营销公司
  • 商城网站需要多少空间方象科技专注于什么领域
  • 手机网站建设运营方案百度搜索热词排行榜
  • 网站内容填写百度seo点击工具
  • 服务器 空间 虚拟主机 网站需要seo排名软件有用吗
  • 网站建设的宽带指标要求免费自己建网页
  • 服装营销型网站建设网站收录怎么做