Trait KeyService

Source
pub trait KeyService {
    // Required methods
    fn digit_vec(&self, length: usize) -> Vec<u8> ;
    fn digit_string(&self, length: usize) -> String;
    fn secure_string(&self, length: usize) -> String;
    fn split_prefixed_key<'a>(
        &self,
        key: &'a str,
        splitter: &str,
    ) -> Result<PrefixedKeySplits<'a>, &'static str>;
}

Required Methods§

Source

fn digit_vec(&self, length: usize) -> Vec<u8>

Source

fn digit_string(&self, length: usize) -> String

Source

fn secure_string(&self, length: usize) -> String

Source

fn split_prefixed_key<'a>( &self, key: &'a str, splitter: &str, ) -> Result<PrefixedKeySplits<'a>, &'static str>

Implementors§