#secret #value #logged #displayed #minimalist

secret-value

Prevents values from being displayed or logged

1 unstable release

0.1.0 Apr 1, 2021

#3 in #displayed

Download history 170/week @ 2024-11-16 126/week @ 2024-11-23 162/week @ 2024-11-30 118/week @ 2024-12-07 87/week @ 2024-12-14 9/week @ 2024-12-28 103/week @ 2025-01-04 101/week @ 2025-01-11 131/week @ 2025-01-18 77/week @ 2025-01-25 209/week @ 2025-02-01 220/week @ 2025-02-08 281/week @ 2025-02-15 264/week @ 2025-02-22 207/week @ 2025-03-01

1,020 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

~155KB