Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exonum/pwbox-rs
Modular password-based encryption for Rust
https://github.com/exonum/pwbox-rs
cryptography encryption password
Last synced: 5 days ago
JSON representation
Modular password-based encryption for Rust
- Host: GitHub
- URL: https://github.com/exonum/pwbox-rs
- Owner: exonum
- License: apache-2.0
- Created: 2018-11-26T09:54:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-23T13:55:36.000Z (almost 3 years ago)
- Last Synced: 2024-08-11T03:16:39.130Z (3 months ago)
- Topics: cryptography, encryption, password
- Language: Rust
- Homepage:
- Size: 920 KB
- Stars: 7
- Watchers: 9
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Modular password-based encryption for Rust
![Rust](https://github.com/exonum/pwbox-rs/workflows/Rust/badge.svg?branch=master)
[![License: Apache-2.0](https://img.shields.io/github/license/exonum/pwbox-rs.svg)](https://github.com/exonum/pwbox-rs/blob/master/LICENSE)
![rust 1.55.0+ required](https://img.shields.io/badge/rust-1.55.0+-blue.svg?label=Required%20Rust)**Documentation:** [![crate docs (master)](https://img.shields.io/badge/master-yellow.svg?label=docs)](https://exonum.github.io/pwbox-rs/pwbox/)
`pwbox` crate provides utilities for password-based encryption together with
corresponding composable cryptographic primitives. Using the crate, it is
possible to securely encrypt sensitive data with a password, serialize it
to any `serde`-supported format, and restore data.**Warning.** Although `pwbox` is constructed analogously to an Ethereum keystore
(and is compatible with it, see crate docs), no independent cryptology expertise has been conducted
regarding its safety. Use at your own risk.## Usage
Add this to your `Crate.toml`:
```toml
[dependencies]
pwbox = "0.5.0"
```See crate documentation for more details how to use the crate.
### Crate Features
- `std` (enabled by default): Enables types from the Rust standard library. Switching
this feature off can be used for constrained environments, such as WASM. Note that
the crate still requires an allocator (that is, the `alloc` crate) even
if the `std` feature is disabled.
- `exonum_sodiumoxide` (enabled by default), `rust-crypto`, `pure` (both disabled by default):
Provide the cryptographic backends.## License
`pwbox` is licensed under the Apache License (Version 2.0). See [LICENSE](LICENSE) for details.