Permalink
Browse files

30DaysOfTests: key length with v1 store

  • Loading branch information...
conradkdotcom committed Aug 28, 2017
1 parent 8dccca7 commit 9dafbcb85466bc874753ec574c6df1c1b45a6317
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/password/v1.rs
View
@@ -128,3 +128,14 @@ pub fn get_all_passwords(
Ok(passwords)
}
#[cfg(test)]
mod test {
use super::generate_encryption_key;
use std::ops::Deref;
#[test]
fn test_generate_encryption_key_is_256_bits() {
assert!(generate_encryption_key("test").deref().len() == (256 / 8));
}
}

0 comments on commit 9dafbcb

Please sign in to comment.