secret-value

Crates.iosecret-value
lib.rssecret-value
version0.1.0
sourcesrc
created_at2021-04-01 13:46:45.029084
updated_at2021-04-01 13:46:45.029084
descriptionPrevents values from being displayed or logged.
homepage
repository
max_upload_size
id376668
size6,427
Pavel Strakhov (Riateche)

documentation

README

secret-value

is a minimalistic crate for ensuring that no secret value was displayed or logged.

Security notice: this crate doesn't provide any kind of protection from direct memory access!

Usage

Simply wrap up your type in Secret and that's it. You may access inner type via Secret::inner method.

Serde support

This library supports derive of serde traits but it's disabled by default. Use features = ["serde"] to enable it. By default Serialize does not leak the inner value, a reversible serialization might be settled with #[serde(serialize_with = "insecure_serialize")] field attribute.

Commit count: 0

cargo fmt