docs: added comment specifying what the settings for Argon2 mean

This commit is contained in:
NinekoTheCat 2023-12-25 01:10:52 +01:00
parent ce937c5e5a
commit 1e31761335
No known key found for this signature in database
GPG key ID: 700DB3F678A4AB66

View file

@ -190,6 +190,7 @@ 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
let argon = Argon2::new(
argon2::Algorithm::Argon2id,
argon2::Version::default(),