Decision Workspace
secrecy vs redactedsecret vs zeroize
Side-by-side comparison of Rust crates
Wrapper types and traits for secret management which help ensure they aren't accidentally copied, logged, or otherwise exposed (as much as possible), and also ensure secrets are securely wiped from memory when dropped.
This is a fork of the official Secrecy crate [https://github.com/iqlusioninc/crates/] Wrapper types and traits for secret management which help ensure they aren't accidentally copied, logged, or otherwise exposed (as much as possible), and also ensure secrets are securely wiped from memory when dropped.
Securely clear secrets from memory with a simple trait built on stable Rust primitives which guarantee memory is zeroed using an operation will not be 'optimized away' by the compiler. Uses a portable pure Rust implementation that works everywhere, even WASM!
Core Metrics
| secrecy | redactedsecret | zeroize | |
|---|---|---|---|
| Health Score | 55 | 41 | 68 |
| Total Downloads | 96.0M | 3.2K | 394.3M |
| 30d Downloads | 7.8M | 4 | 33.7M |
| Dependents | 7.8K | 3 | 21.2K |
| Releases | 20 | 2 | 45 |
| Last Updated | 534d ago | 2339d ago | 179d ago |
| Age | 7y 5m | 6y 5m | 7y 5m |
Health Breakdown
Technical Details
| secrecy | redactedsecret | zeroize | |
|---|---|---|---|
| Version | 0.10.3 | 0.4.1 | 1.8.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 OR MIT | Apache-2.0 OR MIT | Apache-2.0 OR MIT |
| Dependencies | 2 | 3 | 2 |
| Crate Size | 11KB | 9KB | 21KB |
| Features | 0 | 3 | 6 |
| Yanked % | 0.0% | 0.0% | 60.0% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | 1.60 | — | 1.60 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •zeroize leads with a health score of 68/100, but none of the options score above 80.
- •zeroize is depended on by 21.2K crates — strongest ecosystem trust.
- •⚠ secrecy, redactedsecret have not been updated in over a year.
- •secrecy, redactedsecret are pre-1.0 — API may change.