程序包 com.sh.util.rsa

类 RSABaseCoder

java.lang.Object
com.sh.util.rsa.RSABaseCoder
直接已知子类:
RSAUtil

public class RSABaseCoder extends Object

Description: 小加解密类,主要是BASE64的加解密

Title:首亨软件 - TSS/CRM等

从以下版本开始:
Jan 16, 2013
  • 字段详细资料

  • 构造器详细资料

    • RSABaseCoder

      public RSABaseCoder()
  • 方法详细资料

    • decryptBASE64

      public static byte[] decryptBASE64(String key) throws Exception
      BASE64解密
      参数:
      key - 待解密字符串
      返回:
      byte[]
      抛出:
      Exception - Exception
    • encryptBASE64

      public static String encryptBASE64(byte[] key) throws Exception
      BASE64加密
      参数:
      key - byte[]
      返回:
      String
      抛出:
      Exception - Exception
    • encryptMD5

      public static byte[] encryptMD5(byte[] data) throws Exception
      MD5加密
      参数:
      data - byte[]
      返回:
      byte[]
      抛出:
      Exception - Exception
    • encryptSHA

      public static byte[] encryptSHA(byte[] data) throws Exception
      SHA加密
      参数:
      data - byte[]
      返回:
      byte[]
      抛出:
      Exception - Exception