Skip to content

libsodium.SKI.SecretKey.Import

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

Method Signatures

  Shared Function Import(ExportedKey As MemoryBlock, Optional Passwd As libsodium.Password) As libsodium.SKI.SecretKey
  Shared Function Import(ExportedKey As FolderItem, Optional Passwd As libsodium.Password) As libsodium.SKI.SecretKey

Parameters

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

Return value

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

Remarks

Imports a SecretKey that was exported using SecretKey.Export. Pass the Password if the imported key was encrypted.

Clone this wiki locally