完成API签名工具的基础结构,包含Cargo配置、README文档及核心库实现,支持多种签名算法和命令行工具功能。

This commit is contained in:
SF-bytebytebrew
2025-05-21 14:00:33 +08:00
parent f94df2bdbb
commit b92d406bac
4 changed files with 791 additions and 0 deletions

20
rust/Cargo.toml Normal file
View File

@@ -0,0 +1,20 @@
[package]
name = "api-signer"
version = "0.1.0"
edition = "2021"
authors = ["Sound Force <info@example.com>"]
description = "API签名工具提供请求签名与验证功能"
[dependencies]
md-5 = "0.10.5"
sha1 = "0.10.5"
sha2 = "0.10.6"
hmac = "0.12.1"
hex = "0.4.3"
url = "2.3.1"
once_cell = "1.17.1"
chrono = "0.4.23"
thiserror = "2.0.12"
regex = "1.7.3"
dotenv = "0.15.0"
clap = { version = "4.1.11", features = ["derive"] }