标签:cep tin div except utf-8 exce byte ret ring
public String EncodingByMd5(String unencodingString) throws NoSuchAlgorithmException,UnsupportedEncodingException{ MessageDigest md5=MessageDigest.getInstance("MD5"); BASE64Encoder base64Encoder=new BASE64Encoder(); String encodingString=base64Encoder.encode(md5.digest(unencodingString.getBytes("utf-8"))); return encodingString; }
标签:cep tin div except utf-8 exce byte ret ring
原文地址:http://www.cnblogs.com/cmelody/p/6727950.html