![]() |
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.AddPfxSourceFile methodDemonstrates how to call the AddPfxSourceFile method.
Use ChilkatAx-win32.pkg Procedure Test Handle hoCrypt Boolean iSuccess String sPfxPath 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" // ... // ... // ... Move "c:/my_pfx_files/a.pfx" To sPfxPath Move "secret1" To sPfxPassword Get ComAddPfxSourceFile Of hoCrypt sPfxPath 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... Move "c:/my_pfx_files/b.pfx" To sPfxPath Move "secret2" To sPfxPassword Get ComAddPfxSourceFile Of hoCrypt sPfxPath 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.