Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
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("Chilkat.Crypt2")
crypt.UnlockComponent "30-day trial"
crypt.CryptAlgorithm = "PKI"
' We need a certificate for signing.
set cert = CreateObject("Chilkat.Cert")
cert.LoadFromFile("chilkat.cer")
crypt.SetEncryptCert cert
crypt.CkEncryptFile "test.txt","test.enc"
crypt.SaveLastError "errors.txt"
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.