AutoIt
AutoIt
Example: Crypt2.AddPfxSourceBd method
Demonstrates how to call the AddPfxSourceBd method.Chilkat AutoIt Downloads
Local $bSuccess = False
$oCrypt = ObjCreate("Chilkat.Crypt2")
$bSuccess = False
; Do public-key decryption (RSA)
$oCrypt.CryptAlgorithm = "pki"
; ...
; ...
; ...
$oBdPfx = ObjCreate("Chilkat.BinData")
$bSuccess = $oBdPfx.LoadFile("c:/my_pfx_files/a.pfx")
; ...
Local $sPfxPassword = "secret1"
$bSuccess = $oCrypt.AddPfxSourceBd($oBdPfx,$sPfxPassword)
If ($bSuccess = False) Then
ConsoleWrite($oCrypt.LastErrorText & @CRLF)
Exit
EndIf
; Add as many as PFX sources as desired...
$bSuccess = $oBdPfx.LoadFile("c:/my_pfx_files/b.pfx")
$sPfxPassword = "secret2"
$bSuccess = $oCrypt.AddPfxSourceBd($oBdPfx,$sPfxPassword)
If ($bSuccess = False) Then
ConsoleWrite($oCrypt.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...