-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.EncryptionKey.Generate
Andrew Lambert edited this page Nov 26, 2022
·
5 revisions
libsodium.PKI.EncryptionKey.Generate
Shared Function Generate(Optional SeedData As MemoryBlock) As libsodium.PKI.EncryptionKey| Name | Type | Comment |
|---|---|---|
| SeedData | MemoryBlock | Optional. A random seed (exactly crypto_box_SEEDBYTES long). |
An instance of EncryptionKey containing the newly generated key pair, or Nil on error.
Randomly generates a new EncryptionKey pair, optionally using the specified seed.
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.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication