Skip to content

libsodium.PKI.PublicKey

Andrew Lambert edited this page Jan 21, 2023 · 2 revisions

libsodium.PKI.PublicKey

Class Declaration

 Protected Class PublicKey

Remarks

This class contains the public half of a PKI signature or encryption key pair. You use this class to import other users' public keys, and to export the public halves of your keys.

Example

This example exports the public half of an EncryptionKey:

  Dim k As libsodium.PKI.EncryptionKey
  k = k.Generate ' random key for example
  Dim fk As New libsodium.PKI.PublicKey(k)
  If Not fk.Export(SpecialFolder.Desktop.Child("public_encryption_key.txt")) Then
    MsgBox("Export failed!")
  End If

Methods

Properties

Shared methods

Enumerations

See also

Clone this wiki locally