慎用!!!!
/*
* JBoss.java - Blowfish encryption/decryption tool with JBoss default password
* Daniel Martin Gomez <daniel @ ngssoftware.com> - 03/Sep/2009
*
* This file may be used under the terms of the GNU General Public License
* version 2.0 as published by the Free Software Foundation:
* http://www.gnu.org/licenses/gpl-2.0.html
*/
import javax.crypto.*;
import javax.crypto.spec.SecretKeySpec;
public class Jboss {
public static void main(String[] args) throws Exception {
String miwen="密文";
String mode = "d/e";//解密/加密
byte[] kbytes = "jaas is the way".getBytes();
SecretKeySpec key = new SecretKeySpec(kby

这是一个使用Blowfish算法实现的JBoss数据源密码加密和解密工具。代码通过指定的密钥进行加密或解密操作,帮助用户管理和保护在JBoss中的数据源密码。
最低0.47元/天 解锁文章
1175

被折叠的 条评论
为什么被折叠?



