java Base64加密解密

package test;

import org.apache.axiom.om.util.Base64;

public class Test
{
 public static void main(String[] args)
 {
  String str = Base64.encode("test".getBytes());
  System.out.println("加密后:"+str);
  System.out.println("解密后:"+new String(Base64.decode("dGVzdA==")));
 }

猜你喜欢

转载自huanggua12353719.iteye.com/blog/2211123