J2EE培训 百分网手机站

java证书的加密与解密代码(5)

时间:2017-05-24 20:04:42 J2EE培训 我要投稿

java证书的加密与解密代码

  }

  public static String decrypt(String content) throws Exception {

  byte[] bytes = CryptUtils.hex2byte(content);

  bytes = dcip.doFinal(bytes);

  return new String(bytes, "ascii");

  }

  //test

  public static void main(String[] args) throws Exception {

  String password = "gly";

  String en = encrypt(password);

  System.out.println(en);

  System.out.println(decrypt(en));

  }

  }

【java证书的加密与解密代码】相关文章:

1.PHP url 加密解密函数代码方法

2.java非对称加密的源代码(rsa)

3.电脑主板BIOS加密解密设置

4.JAVA常用代码积累

5.Java中的动态代码编程

6.Java代码的基本知识

7.关于java MD5的加密源码

8.Java定时器代码的编写