jmeter Base64编码使用(JAVA8)

2019-11-14  本文已影响0人  一飞冲不了天

对字符串进行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")
上一篇 下一篇

猜你喜欢

热点阅读