encrypted_fs 0.1.21

An encrypted file system that mounts with FUSE on Linux. It can be used to create encrypted directories.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn main() {
    use pbkdf2::pbkdf2_hmac_array;
    use sha2::Sha256;

    let password = b"password";
    let salt = b"salt-42";
// number of iterations
    let n = 600_000;
// Expected value of generated key

    // let mut key1 = [0u8; 20];
    // pbkdf2_hmac::<Sha256>(password, salt, n, &mut key1);
    // println!("{:?}", key1);

    let key2 = pbkdf2_hmac_array::<Sha256, 32>(password, salt, n);
    println!("{:?}", key2);
}