Xojo Plugin
Xojo Plugin
RSA Import Private Key
See more RSA Examples
Shows how to select/import a private key for RSA signing or decryption.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim privKey As New Chilkat.PrivateKey
Dim password As String
password = "secret"
// In all Chilkat methods expecting a path, you pass either absolute or relative paths.
success = privKey.LoadAnyFormatFile("rsaKeys/myTestRsaPrivate.pem",password)
If (success = False) Then
System.DebugLog(privKey.LastErrorText)
Return
End If
Dim rsa As New Chilkat.Rsa
// Tell the RSA object to use the private key (i.e. import the private key)
success = rsa.UsePrivateKey(privKey)