Skip to main content

generate_secret_value

Function generate_secret_value 

Source
pub fn generate_secret_value(
    _policy: &str,
    length: usize,
    encoding: &str,
) -> String
Expand description

Produce a value for a host-generated secret. random policy fills the value with cryptographically-random bytes encoded per encoding; any other policy is treated as random (the only strategy defined today).