对字符串进行Base64编码
String base64String = Base64.getEncoder().encodeToString("jian shu".getBytes("utf-8"))
对Base64字符串进行解码
byte []base64Bytes = Base64.getDecoder().decode(base64String)
String string = new String(base64Bytes ,"utf-8")
String base64String = Base64.getEncoder().encodeToString("jian shu".getBytes("utf-8"))
byte []base64Bytes = Base64.getDecoder().decode(base64String)
String string = new String(base64Bytes ,"utf-8")
本文标题:jmeter Base64编码使用(JAVA8)
本文链接:https://www.haomeiwen.com/subject/rordictx.html
网友评论