sun.misc.sun.misc.BASE64Decoder 與org.apache.ws.security.util.Base64 的不同之處

比較兩者不同之處 首先,當string的length()爲56的時候,,兩者base64是相同的,返回true。 當超過56的時候,則出現不同。 當我使用  EncryptUtils.base64EncoderSun(sourceDATA.getBytes(CommonConstants.GBK)).replaceAll("\r|\n", "")這樣來替換換行符。看看結果。 原因就是sun.mis
相關文章
相關標籤/搜索