Visual Basic 6.0
Visual Basic 6.0
RSA Import Public Key
See more RSA Examples
Shows how to select/import a public key for RSA encryption or signature verification.Chilkat Visual Basic 6.0 Downloads
Dim success As Long
success = 0
Dim pubKey As New PublicKey
' In all Chilkat methods expecting a path, you pass either absolute or relative paths.
success = pubKey.LoadFromFile("rsaKeys/myTestRsaPublic.pem")
If (success = 0) Then
Debug.Print pubKey.LastErrorText
Exit Sub
End If
Dim rsa As New ChilkatRsa
' Tell RSA to use the public key.
success = rsa.UsePublicKey(pubKey)