cloudflare/privacypass-ts

GitHub: cloudflare/privacypass-ts

Cloudflare 出品的 TypeScript 库,实现了 Privacy Pass 令牌发行协议,为隐私保护场景提供符合 IETF 标准的令牌生成与验证能力。

Stars: 44 | Forks: 15

[![NPM](https://img.shields.io/npm/v/@cloudflare/privacypass-ts?style=plastic)](https://www.npmjs.com/package/@cloudflare/privacypass-ts) [![NPM](https://img.shields.io/npm/l/@cloudflare/privacypass-ts?style=plastic)](LICENSE.txt) [![NPM](https://nodei.co/npm/@cloudflare/privacypass-ts.png)](https://www.npmjs.com/package/@cloudflare/privacypass-ts) # privacypass-ts:一个用于 Privacy Pass 发行协议的 TypeScript 库 **规范:** 兼容 IETF [RFC9578](https://datatracker.ietf.org/doc/html/rfc9578)、[draft-hendrickson-privacypass-public-metadata-03](https://datatracker.ietf.org/doc/draft-hendrickson-privacypass-public-metadata/) 和 [draft-ietf-privacypass-batched-tokens-06](https://datatracker.ietf.org/doc/draft-ietf-privacypass-batched-tokens/06/)。 **支持:** - 公开可验证 token(Blind-RSA) - 带有元数据的公开可验证 token(Partially-Blind-RSA) - 私有可验证 token(VOPRF) - 通用 token 批量发行 **用法:** 我们在 [示例文件夹](examples) 中提供了示例。 ### 限制 - 浏览器环境不支持带有元数据验证的公开可验证 token。这是因为 @cloudflare/blindrsa-ts [不支持它们](https://github.com/cloudflare/blindrsa-ts?tab=readme-ov-file#platform-specific-configuration)。 ### 开发 | 任务 | NPM 脚本 | |-----------------|----------------------| | 安装 | `$ npm ci` | | 构建 | `$ npm run build` | | 单元测试 | `$ npm run test` | | 示例 | `$ npm run examples` | | 基准测试 | `$ npm run bench` | | 代码检查 | `$ npm run lint` | | 代码格式化 | `$ npm run format` | ### 许可证 该项目基于 [Apache-2.0](LICENSE.txt) 许可证授权。
标签:MITM代理, Privacy Pass, Syscall, TypeScript, Web开发, 安全插件, 密码学库, 自动化攻击