crypt-config 0.2.2

A crypt module that encrypt/decrypt json data based on the configuration. This might be used as a layer before saving data in Mongo DB or after fetching the data from the DB in order to decrypt them.
Documentation
1
2
3
4
5
pub trait IHasher {
  fn encrypt(&self, password: &str) -> Vec<u8>;
  fn verify(&self, encrypted: &[u8], password: &str) -> bool;
  fn set_salt(&mut self, salt: &[u8]);
}