B4X
B4X
Example: Crypt2.AddPfxSourceFile method
Demonstrates how to call the AddPfxSourceFile method.Chilkat B4X Downloads
Dim success As Boolean = False
Dim crypt As ChilkatCrypt2
crypt.Initialize("crypt")
success = False
' Do public-key decryption (RSA)
crypt.CryptAlgorithm = "pki"
' ...
' ...
' ...
Dim pfxPath As String = "c:/my_pfx_files/a.pfx"
Dim pfxPassword As String = "secret1"
success = crypt.AddPfxSourceFile(pfxPath, pfxPassword)
If success = False Then
Log(crypt.LastErrorText)
Return
End If
' Add as many as PFX sources as desired...
pfxPath = "c:/my_pfx_files/b.pfx"
pfxPassword = "secret2"
success = crypt.AddPfxSourceFile(pfxPath, pfxPassword)
If success = False Then
Log(crypt.LastErrorText)
Return
End If
' ...
' ...