Function secure_random_string

Source
pub fn secure_random_string(len: usize) -> String
Expand description

Generates a secure random string. This is useful for token generation, such as email verification tokens. This string can contain any of the characters in the string “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890” with equal probability.