Encode 加解密
Encode
bytesToHexString 字节集转hex字符串
| 参数名 | 必选 | 类型 | 说明 | 
|---|---|---|---|
| bytes | 是 | bytes[] | 字节集 | 
  let ret = ll.file.readBytes("/sdcard/1.png");
  logd(ll.encode.bytesToHexString(ret));
| 返回值 | 类型 | 说明 | 
|---|---|---|
| 89504e470d0a1a0a0000000d49484452 | sting | hex字符串 | 
bytesToHexString2 字节集转hex字符串,速度更快
| 参数名 | 必选 | 类型 | 说明 | 
|---|---|---|---|
| bytes | 是 | bytes[] | 字节集 | 
  let ret = ll.file.readBytes("/sdcard/1.png");
  logd(ll.encode.bytesToHexString2(ret));
| 返回值 | 类型 | 说明 | 
|---|---|---|
| 89504e470d0a1a0a0000000d49484452 | sting | hex字符串 | 
hexStringToBytes hex字符串转bytes字节集
| 参数名 | 必选 | 类型 | 说明 | 
|---|---|---|---|
| hexString | 是 | string | hex字符串 | 
  //读取文件到bytes
  let ret = ll.file.readBytes("/sdcard/1.png");
  //bytes转hex
  ret = ll.encode.bytesToHexString(ret)
  //hex转bytes
  ret = ll.encode.hexStringToBytes(ret)
  //bytes写入文件
  ll.file.writeBytes("/sdcard/2.png")
| 返回值 | 类型 | 说明 | 
|---|---|---|
| [B@91828e2 | bytes[] | bytes 字节集 |