Home › Forums › ActiveX components › Xceed Encryption for ActiveX › How do I use my Xceed component in PowerBuilder?
The following example demonstrates how to encrypt a file using the Xceed Encryption Library.
Make sure that you have read theinstallation instructionsbeforehand!
long bytesReadoleobject rijndaeloleObject encryption
encryption = CREATE OleObjectencryption.ConnectToNewObject(“Xceed.Encryption.1”)
encryption.License( “your license key” )
rijndael = CREATE OleObjectrijndael.ConnectToNewObject(“Xceed.RijndaelEncryptionMethod.1”)
rijndael.SetRandomSecretKey( 128 )
encryption.EncryptionMethod =rijndaelencryption.ProcessFile(“d:\file.txt”, 0, 0, 0, TRUE, “d:\encrypted.txt”, FALSE, bytesRead)
*Keep in mind that PowerBuilder is not officially support by Xceed*
Imported from legacy forums. Posted by Xceed admin (had 1666 views)