-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.PKI.PublicKey
Andrew Lambert edited this page Jan 21, 2023
·
2 revisions
Protected Class PublicKey
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.
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
- EncryptionKey class
- SigningKey class
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.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication