#protection #security

secret-value

Prevents values from being displayed or logged

1 unstable release

0.1.0 Apr 1, 2021

#23 in #protection

Download history 9/week @ 2024-08-05 10/week @ 2024-09-09 106/week @ 2024-09-16 33/week @ 2024-09-23 101/week @ 2024-09-30 29/week @ 2024-10-07 52/week @ 2024-10-14 148/week @ 2024-10-21 311/week @ 2024-10-28 138/week @ 2024-11-04

649 downloads per month

MIT license

5KB
116 lines

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.

Dependencies

~165KB