-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.ResourceLimits
Andrew Lambert edited this page Nov 26, 2022
·
9 revisions
libsodium.ResourceLimits
Protected Enum ResourceLimits
Sensitive
Moderate
Interactive
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. |
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.