-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SKI.SecretKey.Constructor
Andrew Lambert edited this page Nov 26, 2022
·
5 revisions
Sub Constructor(FromPassword As libsodium.Password, Optional Salt As MemoryBlock, Limits As libsodium.ResourceLimits = libsodium.ResourceLimits.Interactive, HashAlgorithm As Int32 = libsodium.Password.ALG_ARGON2)
Name | Type | Comment |
---|---|---|
FromPassword | Password | The password from which to derive a secret key. |
Salt | MemoryBlock | Optional. A random salt for the key derivation algorithm. |
Limits | ResourceLimits | Optional. A member of the ResourceLimits enumeration. |
HashAlgorithm | Int32 | Optional. Either ALG_ARGON2 (default) or ALG_SCRYPT . |
Generates a SecretKey
by deriving it from a password.
If libsodium is not available at runtime, a PlatformNotSupportedException
will be raised.
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.