pub enum Encryptions {
Md5,
Sha256,
Sha512,
Yescrypt,
}
impl Encryptions {
pub fn decode(&self) -> String {
match self {
Self::Md5 => return "$1$".to_string(),
Self::Sha256 => return "$5$".to_string(),
Self::Sha512 => return "$6$".to_string(),
Self::Yescrypt => return "$y$".to_string()
}
}
}