diff options
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 |
