`
siashuayongsheng
  • 浏览: 118028 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

BASE64解密

key 
阅读更多
/** 
* BASE64解密 
*  
* @param key 
* @return 
* @throws Exception 
*/ 
public static byte[] decryptBASE64(String key) throws Exception {  
    return (new BASE64Decoder()).decodeBuffer(key);  
}  
 
/** 
* BASE64加密 
*  
* @param key 
* @return 
* @throws Exception 
*/ 
public static String encryptBASE64(byte[] key) throws Exception {  
    return (new BASE64Encoder()).encodeBuffer(key);  

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics