VBScript Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VBScript Examples

Bounced Mail
Bz2
Character Encoding
Digital Certificates
CSV
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
PFX
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
FileAccess
Byte Array
RSS
Atom
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

 

Script to Encrypt / Decrypt Files

Download Chilkat Crypt ActiveX

This VBScript demonstrates how to use the Chilkat encryption ActiveX component to encrypt / decrypt any type of file.

set crypt = CreateObject("Chilkat.Crypt2") 
crypt.UnlockComponent "unlockCode"

crypt.CryptAlgorithm = "AES"
crypt.KeyLength = 128
crypt.SecretKey = crypt.GenerateSecretKey("myPassword")

myData = crypt.ReadFile("test.xml")
myEncrypted = crypt.EncryptBytes(myData)
crypt.WriteFile "encrypted.dat",myEncrypted

eData = crypt.ReadFile("encrypted.dat")
myDecrypted = crypt.DecryptBytes(eData)
crypt.WriteFile "testDecrypted.xml",myDecrypted
 

 

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser