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 | 54 | 41 | 66 |
| Total Downloads | 113.0M | 3.2K | 476.9M |
| 30d Downloads | 9.0M | 0 | 47.0M |
| Dependents | 9.9K | 3 | 26.7K |
| Releases | 20 | 2 | 45 |
| Last Updated | 593d ago | 2398d ago | 238d ago |
| Age | 7y 7m | 6y 7m | 7y 7m |
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 66/100, but none of the options score above 80.
- •zeroize is depended on by 26.7K crates — strongest ecosystem trust.
- •⚠ secrecy, redactedsecret have not been updated in over a year.
- •secrecy, redactedsecret are pre-1.0 — API may change.