scryptenc-0.8.2 has been yanked.
scryptenc-rs
scryptenc-rs (scryptenc
) is an implementation of the
scrypt encrypted data format.
The format is defined here.
Usage
Add this to your Cargo.toml
:
[]
= "0.8.2"
Example
use ;
let data = b"Hello, world!\n";
let passphrase = "passphrase";
// Encrypt `data` using `passphrase`.
let params = new.unwrap;
let ciphertext = with_params.encrypt_to_vec;
assert_ne!;
// And decrypt it back.
let plaintext = new
.and_then
.unwrap;
assert_eq!;
Crate features
alloc
Enables features that require an allocator. This is enabled by default (implied
by std
).
std
Enables features that depend on the standard library. This is enabled by default.
no_std
support
This supports no_std
mode. Disables the default
feature to enable this.
Documentation
See the documentation for more details.
Minimum supported Rust version
The minimum supported Rust version (MSRV) of this library is v1.60.0.
Changelog
Please see CHANGELOG.adoc.
Contributing
Please see CONTRIBUTING.adoc.
License
Copyright © 2022–2023 Shun Sakai (see AUTHORS.adoc)
This library is distributed under the terms of either the Apache License 2.0 or the MIT License.
See COPYING for more details.