Skip to content

libsodium.ResourceLimits

Andrew Lambert edited this page Nov 26, 2022 · 9 revisions

libsodium.ResourceLimits

Enumeration

 Protected Enum ResourceLimits
     Sensitive
     Moderate
     Interactive

Remarks

These are the possible resource requirements for Argon2i and scrypt based hashing and key stretching.

Password hashing and key stretching are susceptible to attacks that use relatively inexpensive custom hardware. To mitigate this attack vector, derivation and hashing can be done with a variable amount of deliberate "slowness" in the operation.

The members of this enum correspond to the three main levels of slowness:

Name Comment
Sensitive The slowest and most secure option.
Moderate A middle ground between secure and fast.
Interactive Fastest but least secure.

See also

Clone this wiki locally