10 releases

0.5.0 Jan 23, 2022
0.4.0 Jan 6, 2021
0.3.0 Mar 12, 2020
0.2.1 Sep 6, 2019
0.1.0 Dec 4, 2018

#5 in #exonum

Download history 25/week @ 2024-07-22 48/week @ 2024-07-29 33/week @ 2024-08-05 32/week @ 2024-08-12 22/week @ 2024-08-19 24/week @ 2024-08-26 26/week @ 2024-09-02 27/week @ 2024-09-09 27/week @ 2024-09-16 112/week @ 2024-09-23 34/week @ 2024-09-30 2/week @ 2024-10-07 30/week @ 2024-10-14 29/week @ 2024-10-21 24/week @ 2024-10-28 23/week @ 2024-11-04

106 downloads per month
Used in 16 crates (2 directly)

Apache-2.0

78KB
1.5K SLoC

Modular password-based encryption for Rust

Rust License: Apache-2.0 rust 1.55.0+ required

Documentation: crate docs (master)

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:

[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 for details.

Dependencies

~3–6.5MB
~81K SLoC