VBScript Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VBScript Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
PFX
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
Byte Array
RSS
Atom

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

 

Script to Encrypt / Decrypt Files

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

set crypt = CreateObject("ChilkatCrypt2.ChilkatCrypt2") 
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
 

 

Need a specific example? Send a request to support@chilkatsoft.com

© 2003-2007 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser