pub fn derive_password(derivation_value: String) -> String {
    // create a SHA3-256 object
    let mut hasher = Sha3_512::new();

    // write input message
    hasher.update(derivation_value);

    // read hash digest
    let result = hasher.finalize();
    let mut _password = format!("{:x}", result);
    _password.truncate(32);
    _password
}
// Derive password from given string.
// TODO: Currently implemented by using a hash, later libuta will be used
Derive password from given string.
TODO: Currently implemented by using a hash, later libuta will be used
Derive password from given string . TODO : Currently implemented by using a hash later libuta will be used
pub fn derive_password(derivation_value: String) -> String {
    // create a SHA3-256 object
    let mut hasher = Sha3_512::new();
    // write input message
    hasher.update(derivation_value);
    // read hash digest
    let result = hasher.finalize();
    let mut _password = format!("{:x}", result);
    _password.truncate(32);
    _password
}
pub fn derive_password ( derivation_value : String ) -> String { // create a SHA3-256 object let mut hasher = Sha3_512 :: new ( ) ; // write input message hasher . update ( derivation_value ) ; // read hash digest let result = hasher . finalize ( ) ; let mut _password = format ! ( " " result ) ; _password . truncate ( 32 ) ; _password }
Derive password from given string.
Derive password from given string .
derivation_value
String
derivation_value
String