Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Public Key Encrypt File with Digital Certificate VBScript to public-key encrypt a file using a digital certificate.
set crypt = CreateObject("ChilkatCrypt2.ChilkatCrypt2")
crypt.UnlockComponent "30-day trial"
crypt.CryptAlgorithm = "PKI"
' We need a certificate for signing.
set cert = CreateObject("ChilkatCertificate.ChilkatCert")
cert.LoadFromFile("chilkat.cer")
crypt.SetEncryptCert cert
crypt.CkEncryptFile "test.txt","test.enc"
crypt.SaveLastError "errors.txt"
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2003-2008 Chilkat Software, Inc. All Rights Reserved.