Skip to content

libsodium.PKI.EncryptionKey.Import

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

Method Signatures

  Shared Function Import(ExportedKey As MemoryBlock, Optional Passwd As libsodium.Password) As libsodium.PKI.EncryptionKey
  Shared Function Import(ExportedKey As FolderItem, Optional Passwd As libsodium.Password) As libsodium.PKI.EncryptionKey

Parameters

Name Type Comment
ExportedKey MemoryBlock or FolderItem An exported EncryptionKey
Passwd Password Optional. The password used to encrypt the exported key

Return value

An instance of EncryptionKey containing the imported key pair, or Nil on error.

Remarks

Import an EncryptionKey that was exported using EncryptionKey.Export. Pass the Password if the imported key was encrypted.

Clone this wiki locally