Openfire 管理员密码解密 作者: admin 时间: 2020-03-17 分类: 随便写写 今天遇到了就这里记录一下 ## 获取加密后的密码 >select encryptedPassword from ofuser where username='admin'; ## 获取 passwordKey >SELECT * FROM ofproperty ![](https://www.ch1ng.com/blog/usr/uploads/2020/03/2529924451.png) ## 解密 把附件下载回来 ```java package org.example; import org.example.Blowfish; public class dec { public static void main(String[] args) { //encryptedPassword:加密的密码 String encryptedPassword = ""; String passwordKey = "";//ofproperty中的秘钥 Blowfish blowFish = new Blowfish(passwordKey); String mingwen = blowFish.decryptString(encryptedPassword); //解密后明文密码 System.out.println(mingwen); } } ``` ![](https://www.ch1ng.com/blog/usr/uploads/2020/03/4276054574.png) ## 附件 [Blowfish.zip](https://www.ch1ng.com/blog/usr/uploads/2020/03/817832004.zip) 标签: none