Skip to content

Latest commit

 

History

History
109 lines (72 loc) · 2.22 KB

File metadata and controls

109 lines (72 loc) · 2.22 KB

base64

encode

参数名 描述 可否为空
bytes 要加密的字节数组
参数名 描述 可否为空
string 要加密的字节数组
charset 编码格式,默认UTF-8

::: tip

返回值类型:String

:::

根据字节数组或字符串进行base64加密,返回String

  • 根据访问结果进行base64加密

    ${base64.encode(resp.html)}
    ${base64.encode(resp.bytes)}

encodeBytes

参数名 描述 可否为空
bytes 要加密的字节数组
参数名 描述 可否为空
string 要加密的字节数组
charset 编码格式,默认UTF-8

::: tip

返回值类型:byte[]

:::

  • 根据字节数组或字符串进行base64加密,返回byte[]
 ${base64.encodeBytes(resp.html)}
${base64.encodeBytes(resp.bytes)}

decode

参数名 描述 可否为空
bytes/string 要解密的字节数组或字符串

::: tip

返回值类型:byte[]

:::

根据字节数组或字符串进行base64解密,返回byte[]

  • 根据访问结果进行base64解密

    ${base64.decode(resp.html)}
    ${base64.decode(resp.bytes)}

decodeString

参数名 描述 可否为空
string 要解密的字符串
参数名 描述 可否为空
bytes 要解密的字节数组
charset 编码格式,默认UTF-8

::: tip

返回值类型:String

:::

根据字节数组或字符串进行base64解密,返回String

  • 根据访问结果进行base64解密

    ${base64.decodeString(resp.html)}
    ${base64.decodeString(resp.bytes)}