mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 10:56:41 +02:00
fix: fixed incorrect value for Kib
This commit is contained in:
parent
6fcac572d2
commit
029c7441ef
1 changed files with 2 additions and 2 deletions
|
@ -190,11 +190,11 @@ impl Service<'_> {
|
|||
RoomVersionId::V5,
|
||||
RoomVersionId::V11,
|
||||
];
|
||||
// 2432 Kib blocks, iterations = 2, parallelism = 1 for more info https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
|
||||
// 19456 Kib blocks, iterations = 2, parallelism = 1 for more info https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
|
||||
let argon = Argon2::new(
|
||||
argon2::Algorithm::Argon2id,
|
||||
argon2::Version::default(),
|
||||
argon2::Params::new(2432, 2, 1, None).expect("valid parameters"),
|
||||
argon2::Params::new(19456, 2, 1, None).expect("valid parameters"),
|
||||
);
|
||||
let mut s = Self {
|
||||
db,
|
||||
|
|
Loading…
Add table
Reference in a new issue