Skip to content

Commit

Permalink
30DaysOfTests: key length with v1 store
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Aug 28, 2017
1 parent 8dccca7 commit 9dafbcb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/password/v1.rs
Expand Up @@ -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.