Argon2Security class
This contains some recommended values of memory, iteration and parallelism values for Argon2 algorithm.
It is best to try out different combinations of these values to achieve the desired runtime on a target machine.
Constructors
- Argon2Security.new(String name, {required int m, required int p, required int t, Argon2Type type = Argon2Type.argon2id, Argon2Version version = Argon2Version.v13})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- m → int
-
The amount of memory to use in KB. The more the better, but slower.
final
- name → String
-
final
- p → int
-
Number of threads or lanes to use. The more the better, but slower.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- t → int
-
Number of iterations. The more the better, but slower.
final
- type → Argon2Type
-
The type of the algorithm
final
- version → Argon2Version
-
The version of the algorithm
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- good → const Argon2Security
- Provides good security. Second recommended option by RFC-9106.
- little → const Argon2Security
- Provides low security but faster. Suitable for low-end devices.
- moderate → const Argon2Security
- Provides moderate security. Suitable for modern mobile devices.
- owasp → const Argon2Security
- Provides strong security recommended by OWASP.
- owasp2 → const Argon2Security
- Second recommendation from OWASP.
- owasp3 → const Argon2Security
- Third recommendation from OWASP.
- owasp4 → const Argon2Security
- Fourth recommendation from OWASP.
- owasp5 → const Argon2Security
- Second recommendation from OWASP.
- strong → const Argon2Security
- Provides strong security. First recommended option by RFC-9106.
- test → const Argon2Security
- Provides a very low security. Use it for test purposes.