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==")));
 }

你可能感兴趣的:(base64)