secrecy
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.
0.10.3
148M downloads/mo
#616 most downloaded on crates.io
iqlusioninc/crates
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 3.0 years
Nearly every release is documented
notes for 18 of 19 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
20 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
20 releases · Oct 2018 to Oct 2024Releases
latest 20-
0.10.309 Oct 2024 -
0.10.220 Sep 2024 -
0.10.118 Sep 2024 -
0.10.017 Sep 2024Release notes
Open source →This release represents a significant redesign of the
secrecycrate. We will update this section with upgrade instructions based on feedback from people upgrading, as it's been a long time since the previous release, and this release includes a number of breaking changes.The most notable change is the generic
Secret<T>type has been removed: instead useSecretBox<T>which stores secrets on the heap instead of the stack. Many of the other changes fall out of this change and things which were previously type aliases ofSecret<T>are now type aliases ofSecretBox<T>.This unfortunately means this crate no longer has support for "heapless"
no_stdtargets. We don't have a good solution for these targets, which was a motivation for this change in the first place.Added
SecretBox::{init_with, try_init_with}(#1212)SecretBox::init_with_mut(#1213)?Sizedbounds forSecretBox(#1213)SecretSlice<T>(#1214)
Changed
- Rust 2021 edition upgrade (#889)
- MSRV 1.60 (#1105)
SecretBox<T>is now a newtype rather than a type alias of `Secret<Box<T>> (#1140)SecretStringis now a type alias forSecretBox<str>(#1213)- Disable
serdedefault features (#1194)
Removed
-
0.9.0-pre.030 Jul 2024 pre-release -
0.8.018 Jul 2021Release notes
Open source →NOTE: This release includes an MSRV bump to Rust 1.56. Please use
secrecy = "0.7.0"if you would like to support older Rust versions.Added
- impl
From<T>forSecret(#482)
Changed
- impl
-
0.7.008 Jul 2020 -
0.6.012 Dec 2019 -
0.5.218 Dec 2019 -
0.5.130 Nov 2019 -
0.5.014 Oct 2019 -
0.4.113 Oct 2019 -
0.4.003 Sep 2019 -
0.3.126 Aug 2019 -
0.3.021 Aug 2019 -
0.2.228 Jun 2019 -
0.2.104 Jun 2019 -
0.2.029 May 2019 -
0.1.023 May 2019 -
0.0.004 Oct 2018Nothing published for this version