bfile/filed/src/security.rs

5 lines
193 B
Rust
Raw Normal View History

use argon2::{Argon2, Params};
pub fn get_argon2() -> Argon2<'static> {
argon2::Argon2::new(argon2::Algorithm::Argon2id, argon2::Version::V0x13, Params::new(256, 2, 2, Some(32)).unwrap())
}