Skip to content

libsodium.PKI.EncryptionKey

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

libsodium.PKI.EncryptionKey

Class Declaration

 Protected Class EncryptionKey

Remarks

This class contains a curve25519 key pair for use with authenticated public key encryption.

To generate a brand new key pair use the Generate shared method, optionally passing in some seed data. To derive a key pair from a Password use the Constructor(Password) method.

To import and export the secret half of an encryption key use the Import and Export methods; use the PublicKey class to import or export the public half.

Methods

Shared methods

See also

Clone this wiki locally