#private-key #public-key #json #secp256k1 #jwt #api

cylinder

Cylinder 是一个高级的加密签名库

11 个版本

0.3.1 2024 年 1 月 5 日
0.3.0 2023 年 1 月 25 日
0.2.4 2022 年 1 月 7 日
0.2.3 2021 年 11 月 29 日
0.2.1 2020 年 11 月 16 日

#591 in 密码学

Download history 151/week @ 2024-03-11 142/week @ 2024-03-18 145/week @ 2024-03-25 101/week @ 2024-04-01 58/week @ 2024-04-08 88/week @ 2024-04-15 13/week @ 2024-04-22 22/week @ 2024-04-29 10/week @ 2024-05-13 10/week @ 2024-05-20 10/week @ 2024-05-27 27/week @ 2024-06-03 13/week @ 2024-06-10 8/week @ 2024-06-17 16/week @ 2024-06-24

65 每月下载量
用于 8 个 crates (7 直接)

Apache-2.0

80KB
1.5K SLoC

Cylinder

概述

Cylinder 为 Rust 项目提供了一个简单实用的加密签名和验证 API。通过构建在其他加密 crate(如 secp256k1)之上,Cylinder 避免了直接实现任何加密。

特性包括

  • 一个签名 API,通过使用私钥对字节进行签名来生成签名
  • 一个验证 API,用于验证给定消息和公钥的签名
  • Secp256k1 的签名和验证 API 实现
  • 以一致方式查找和加载密钥的函数
  • 支持与 Cylinder 兼容的 JSON Web Tokens (JWT)

使用 Cylinder

以下资源可用于 Cylinder

使用 Cylinder 的项目

以下项目目前正在使用 Cylinder

许可证

Cylinder 在 Apache License Version 2.0 软件许可下获得许可。

依赖关系

~5–16MB
~127K SLoC