-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.PublicKey.Import
Andrew Lambert edited this page Jan 21, 2023
·
1 revision
Shared Function Import(ExportedKey As MemoryBlock, Optional Passwd As libsodium.Password) As libsodium.PKI.PublicKey
Shared Function Import(ExportedKey As FolderItem, Optional Passwd As libsodium.Password) As libsodium.PKI.PublicKey
Name | Type | Comment |
---|---|---|
ExportedKey | MemoryBlock or FolderItem | An exported PublicKey |
Passwd | Password | Optional. The password used to encrypt the exported key |
An instance of PublicKey containing the imported key, or Nil
on error.
Import a PublicKey
that was exported using PublicKey.Export. Pass the Password if the key was encrypted when it was exported.
The type of key (encryption, signature, or unknown) is detected automatically. Query the Type property of the returned PublicKey instance to determine the type.
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.