1

package test;
import org.apache.commons.codec.binary.Base64;

public class Test07 {
    public static void main(String[] args) throws Exception {
        byte[] bytes1 = Base64.encodeBase64("https://blog.csdn.net/qingfengxia2013/article/details/82188912".getBytes());
        String s1 = new String(bytes1);
        System.out.println(s1);

        byte[] bytes = Base64.decodeBase64(s1.getBytes());
        String s2 = new String(bytes);
        System.out.println(s2);
    }
}

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2021-08-03
  • 2021-11-25
  • 2021-06-03
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-09-04
  • 2021-11-11
  • 2021-06-25
相关资源
相似解决方案