diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-10 14:50:56 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-10 15:09:38 +0000 |
commit | 9a8cac060d60aee638e368e96afb46967d6d8190 (patch) | |
tree | 32365ea7ebb3e255907e352fcf867877ab9cd6a9 /data | |
parent | 0353338436141cd27cebd776cbc74e568e801ffe (diff) |
Add support for encrypting passwords with the Argon2 algorithm.
Closes #369.
Diffstat (limited to 'data')
-rw-r--r-- | data/anope.example.conf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index 3bc249d24..45ebef058 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -1255,6 +1255,42 @@ module } /* + * [EXTRA] enc_argon2 + * + * Provides support for encrypting passwords using the Argon2 algorithm. See + * https://en.wikipedia.org/wiki/Argon2 for more information. + */ +#module +{ + name = "enc_argon2" + + /** The sub-algorithm to use. Can be set to argon2d for Argon2d, argon2i for + * Argon2i, or argon2id for Argon2id. Defaults to argon2id. + */ + #algorithm = "argon2id" + + /** The memory hardness in kibibytes of the Argon2 algorithm. Defaults to + * 128 mebibytes. + */ + #memory_cost = 121072 + + /** The time hardness (iterations) of the Argon2 algorithm. Defaults to 3. + */ + #time_cost = 3 + + /** The amount of parallel threads to use when encrypting passwords. + * Defaults to 1. + */ + #parallelism = 1 + + /** The length in bytes of an Argon2 hash. Defaults to 32. */ + #hash_length = 32 + + /** The length in bytes of an Argon2 salt. Defaults to 32. */ + #salt_length = 32 +} + +/* * enc_bcrypt * * Provides support for encrypting passwords using the Bcrypt algorithm. See |