编码/解码的工具包。
maven配置:
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
官网: http://commons.apache.org/proper/commons-codec/
官方API文档:http://commons.apache.org/proper/commons-codec/archives/1.10/apidocs/index.html
编写工具类:
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.digest.DigestUtils;
/**
* 常用 编码/解码 工具类
* @author Administrator
*
*/
public cl