arena-file

Arena image file libs

Usage no npm install needed!

<script type="module">
  import arenaFile from 'https://cdn.skypack.dev/arena-file';
</script>

README

Arena 文件读写组件

Arena 文件结构标准

字节流大小(字节) 含义 写入方法
5 ARENA 字符串 utf8-bit
1 version 文件版本 8Int
4 meta内容长度 U32IntBE
4 flags 文件功能 U32IntBE
4 Arena 文件类型
PROJ: 工程文件;PLUG: 插件文件;APT-:主题文件
utf8-bit
6 sem version 资源内容版本 U16IntBE x 3
1 加密方法长度 8Int
4 数字证书长度 U32IntBE
4 签名结果长度 U32IntBE
4 资源内容长度 U32IntBE
4 cfg_length 配置长度 U32IntBE
20 cfg_checksum 配置校验哈希 bit-stream
n cfg内容 utf8-bit
n 资源内容 bit-stream
n 加密方法 utf8-bit
n 数字证书内容 bit-stream
n 签名结果 bit-stream
n DRM-ID utf8-bit

Flags 对应含义

字节位 含义 数值列表 实现情况
0 文件meta是否被压缩
1 哈希方法 md5
sha1
2 cfg 是否被压缩
3 DRM 保护
4 密码加密
5 内容被签名保护
6 需要使用根证书解开数字证书
7 验证时需要使用者提供根证书

Scheduled Changes

cfg_checksum: 长度从 20 增加到 32