Trait itsdangerous::key_derivation::DeriveKey
source · [−]pub trait DeriveKey {
fn derive_key<Digest>(
secret_key: &str,
salt: &str
) -> GenericArray<u8, Digest::OutputSize>
where
Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
Digest::BlockSize: ArrayLength<u8> + Clone,
Digest::OutputSize: ArrayLength<u8>;
}
Expand description
This trait is called to derive a key for signing from a given key + salt.
Remarks
Key derivation is not indended to be used as a security method to make a complex key out of a short password. Instead, you should use large random secret keys.