diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dbd10b..2749bea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # Changelog +## 0.1.6 - 2024-09-11 + +- [#10](https://github.com/Eyob94/shush-rs/pull/10) SecretVec + - Add public alias and `SecretVec` + ## 0.1.5 - 2024-09-11 + - [#10](https://github.com/Eyob94/shush-rs/pull/9) FromStr - - Implement `FromStr` trait for SecretString - - Add public alias `SecretString` and `SecretVec` + - Implement `FromStr` trait for SecretString + - Add public alias `SecretString` and `SecretVec` ## 0.1.4 - 2024-09-11 diff --git a/Cargo.lock b/Cargo.lock index 41ad405..25f4a79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" [[package]] name = "shush-rs" -version = "0.1.5" +version = "0.1.6" dependencies = [ "errno", "libc", diff --git a/Cargo.toml b/Cargo.toml index 3a3d08c..629f620 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shush-rs" -version = "0.1.5" +version = "0.1.6" edition = "2021" license = "MIT OR Apache-2.0" description = "A Rust crate designed to manage sensitive data securely by leveraging memory protection mechanisms." diff --git a/src/lib.rs b/src/lib.rs index edf7b88..352ff2f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,6 +47,9 @@ impl FromStr for SecretString { } } +/// Convenient type alias for Secret Wrapped Vectors +pub type SecretVec = SecretBox>; + impl Drop for SecretBox { fn drop(&mut self) { let len = size_of_val(&*self.inner_secret);