encryption-rust 1.0.1

可插拔密码学组件库的 Rust 实现:在统一契约下提供对称加密、非对称加密、哈希与密钥派生(HKDF / PBKDF2),包含 AES/Sodium 与国密 SM2/SM3/SM4/ZUC 等实现
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Copyright (c) 2026 erik <erik@erik.xyz> — https://erik.xyz

//! 对称加密实现(对应 PHP 版 `Encryptor/`)。

mod aes256cbc;
mod aes256gcm;
mod sodium_xchacha20;

pub use aes256cbc::Aes256CbcEncryptor;
pub use aes256gcm::Aes256GcmEncryptor;
pub use sodium_xchacha20::SodiumXChaCha20Encryptor;