-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.EncryptionKey.Export
Andrew Lambert edited this page Jan 21, 2023
·
15 revisions
libsodium.PKI.EncryptionKey.Export
Function Export(Optional Passwd As libsodium.Password) As MemoryBlock
Function Export(SaveTo As FolderItem, Optional Passwd As libsodium.Password, OverWrite As Boolean = False) As Boolean
Name | Type | Comment |
---|---|---|
Passwd | Password | Optional. A password used to encrypt the exported key |
Name | Type | Comment |
---|---|---|
SaveTo | FolderItem | The location to save the exported key to. |
Passwd | Password | Optional. A password used to encrypt the exported key |
OverWrite | Boolean | Optional. If True , an existing SaveTo file is overwritten. |
The exported private key.
Returns True
if the operation succeeded.
This method exports the EncryptionKey
in a format that is understood by EncryptionKey.Import. Pass a Password to encrypt the key before exporting.
The exported key includes only the private half of the key pair. To export only the public half (i.e. share it publicly) create an instance of PublicKey from your EncryptionKey
, and export the PublicKey.
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.