Function bobbytables::clean_key [] [src]

pub fn clean_key(key: &str) -> [u8; 16]

Clean a given key string. This involves stripping non ascii characters out and limiting the key to 16 characters. The resulting key is stack allocated so be careful with it. If you need it long term put it in a Box.