Home Forums ActiveX components Xceed Encryption for ActiveX How do I use my Xceed component in PowerBuilder?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #43033 |

    Most Xceed Components can be used 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 bytesRead
    oleobject rijndael
    oleObject encryption

    encryption = CREATE OleObject
    encryption.ConnectToNewObject(“Xceed.Encryption.1”)

    encryption.License( “your license key” )

    rijndael = CREATE OleObject
    rijndael.ConnectToNewObject(“Xceed.RijndaelEncryptionMethod.1”)

    rijndael.SetRandomSecretKey( 128 )

    encryption.EncryptionMethod =rijndael
    encryption.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)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.