Trait chbs::component::traits::WordSetProvider[][src]

pub trait WordSetProvider: HasEntropy + Debug {
    fn words(&mut self) -> Vec<String>;
}

Something that provides sets of random words.

A component that provides functionallity to source a random set of passphrase words. On sourcing, an ordered list of random passphrase words is returned that will be used in the password.

This differs from WordProvider as this provides a set of words instead of a single word. It should be fairly easy to implement this trait on types that have the WordProvider implemented.

Required Methods

Source a set of random passphrase words to use in a passphrase.

Implementors