1ARGON2-CALIBRATE(1) User Contributed Perl Documentation ARGON2-CALIBRATE(1)
2
3
4
6 argon2-calibrate - a script to find the appropriate argon2 parameters
7
9 version 0.019
10
12 This program implements the following procedure, as recommended by the
13 argon2 authors:
14
15 1. Select the type "y". If you do not know the difference between them,
16 choose Argon2id.
17 2. Figure out the maximum number of threads "h" that can be initiated
18 by each call to Argon2. This is the "parallelism" argument.
19 3. Figure out the maximum amount of memory "m" that each call can a
20 afford.
21 4. Figure out the maximum amount "x" of time (in seconds) that each
22 call can a afford.
23 5. Select the salt length. 16 bytes is suffient for all applications,
24 but can be reduced to 8 bytes in the case of space constraints.
25 6. Select the tag (output) size. 16 bytes is suffient for most
26 applications, including key derivation.
27 7. Run the scheme of type "y", memory "m" and "h" lanes and threads,
28 using different number of passes "t". Figure out the maximum "t" such
29 that the running time does not exceed "x". If it exceeds "x" even for
30 "t = 1", reduce "m" accordingly. If using Argon2i, t must be at least
31 3.
32 8. Hash all the passwords with the just determined values "m", "h", and
33 "t".
34
36 Leon Timmermans <leont@cpan.org>
37
39 This software is Copyright (c) 2013 by Daniel Dinu, Dmitry
40 Khovratovich, Jean-Philippe Aumasson, Samuel Neves, Thomas Pornin and
41 Leon Timmermans.
42
43 This is free software, licensed under:
44
45 The Apache License, Version 2.0, January 2004
46
47
48
49perl v5.36.1 2023-09-17 ARGON2-CALIBRATE(1)