3 个稳定版本
1.0.2 | 2021年7月12日 |
---|---|
1.0.1 | 2020年5月5日 |
#1984 在 加密学
91 每月下载量
在 3 crates 中使用
10KB
132 代码行
simplecrypt
simplecrypt 是 sodiumoxide 的封装,支持使用密钥加密和解密任意数据。
安装
simplecrypt
存放在 crates.io。要使用这个 crate,只需将其添加到你的 [dependencies]
文件中的 Cargo.toml
部分。
simplecrypt = "1.0"
文档
你可以在 docs.rs 页面 找到文档。
要本地构建文档,请克隆仓库并运行
cargo doc --open
测试
要运行测试,请克隆仓库并运行
cargo test
lib.rs
:
Simple library that allows to easily encrypt and decrypt data with a secret key using sodium.
依赖
~19MB
~99K SLoC