文本文件加密,对于xml的数据串中的特殊字符,中文符号等都是最好的处理方法,性能方面比base64要好。下面是该算法的源码:
/**
* @字符串的加密解密,主要用于参数传递
* @time 2007-10-11
*/
package com.css.sjtb.util;
import java.security.*;
import javax.crypto.*;
public class DesPlus {
private static String strDefaultKey = "national";
private Cipher encryptCipher = ...







评论排行榜