pub fn create_key(pw: &str) -> Vec<u8> {
    let mut hasher = Sha256::default();
    hasher.input(pw);
    let result = hasher.result();
    let key = &result[0..8];

    key.to_vec().clone()
}
/// Hashes a text to a 32 bytes long key.
Hashes a text to a 32 bytes long key.
Hashes a text to a 32 bytes long key .
pub fn create_key(pw: &str) -> Vec<u8> {
    let mut hasher = Sha256::default();
    hasher.input(pw);
    let result = hasher.result();
    let key = &result[0..8];
    key.to_vec().clone()
}
pub fn create_key ( pw : & str ) -> Vec < u8 > { let mut hasher = Sha256 :: default ( ) ; hasher . input ( pw ) ; let result = hasher . result ( ) ; let key = & result [ 0 .. 8 ] ; key . to_vec ( ) . clone ( ) }
Hashes a text to a 32 bytes long key.
Hashes a text to a 32 bytes long key .
pw
&str