![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(DataFlex) Example: Crypt2.AddPfxSourceBd methodDemonstrates how to call the AddPfxSourceBd method.
Use ChilkatAx-win32.pkg Procedure Test Handle hoCrypt Boolean iSuccess Variant vBdPfx Handle hoBdPfx String sPfxPassword String sTemp1 Get Create (RefClass(cComChilkatCrypt2)) To hoCrypt If (Not(IsComObjectCreated(hoCrypt))) Begin Send CreateComObject of hoCrypt End Move False To iSuccess // Do public-key decryption (RSA) Set ComCryptAlgorithm Of hoCrypt To "pki" // ... // ... // ... Get Create (RefClass(cComChilkatBinData)) To hoBdPfx If (Not(IsComObjectCreated(hoBdPfx))) Begin Send CreateComObject of hoBdPfx End Get ComLoadFile Of hoBdPfx "c:/my_pfx_files/a.pfx" To iSuccess // ... Move "secret1" To sPfxPassword Get pvComObject of hoBdPfx to vBdPfx Get ComAddPfxSourceBd Of hoCrypt vBdPfx sPfxPassword To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoCrypt To sTemp1 Showln sTemp1 Procedure_Return End // Add as many as PFX sources as desired... Get ComLoadFile Of hoBdPfx "c:/my_pfx_files/b.pfx" To iSuccess Move "secret2" To sPfxPassword Get pvComObject of hoBdPfx to vBdPfx Get ComAddPfxSourceBd Of hoCrypt vBdPfx sPfxPassword To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoCrypt To sTemp1 Showln sTemp1 Procedure_Return End // ... // ... End_Procedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.