1 个不稳定版本
0.1.0 | 2023年9月29日 |
---|
#5 在 #ecdh
23KB
512 行
Ronnie Crypto
基于 OpenSSL 封装,包括 AES、HASH、RSA、HMAC、HKDF、ECDH 等接口。
示例
aes cbc
let key = b"abcdefghijklmnop";
let iv = b"abcdefghijklmnop";
let data = b"Hello, world! This is a test of the openssl encryptor.";
let ciphertext = aes_cbc_encrypt(key, iv, data).unwrap();
依赖项
~1.8–2.6MB
~58K SLoC