| Crates.io | angulu-rs |
| lib.rs | angulu-rs |
| version | 0.1.0 |
| created_at | 2025-08-15 08:12:22.512322+00 |
| updated_at | 2025-08-15 08:12:22.512322+00 |
| description | angulu-rs is a library, which contains some cipher components. |
| homepage | |
| repository | https://github.com/elvisding0307/angulu-rs |
| max_upload_size | |
| id | 1796394 |
| size | 93,978 |
angulu-rs是一个密码学工具库。
| 密码算法 | IV长度(Byte) | Key长度(Byte) | Block长度(Byte) | 算法类型 |
|---|---|---|---|---|
| ChaCha20 | 12 | 32 | 1 | Stream |
| SM4 | 16 | 16 | 16 | Block |
| 编码类型 | 参数 |
|---|---|
| hex | HexEncodingCase: UpperCase/LowerCase |
| base64 | 无 |
| 哈希算法 | 输出长度(Byte) |
|---|---|
| CRC32 | 4 |
| CRC32C | 4 |
| Sha1 | 20 |
| Sha256 | 32 |
| Sha512 | 64 |
编译angulu库(开发模式):
cargo build
编译优化版本(发布模式):
cargo build --release
运行所有测试:
cargo test
运行测试并显示输出:
cargo test -- --nocapture
生成并打开文档:
cargo doc --open
运行代码格式检查:
cargo fmt --check
运行代码质量检查:
cargo clippy
清理编译生成的文件:
cargo clean