Python Examples

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

Python Examples

Quick Start
Unicode
Byte Array
Bz2
Certificates
CSV
Email
Encryption
FTP
HTML Conversion
HTTP
IMAP
MHT
MIME
POP3
RSA
S/MIME
Signatures
Socket / SSL
SFTP
SMTP
Spider
SSH Key
SSH
SSH Tunnel
Tar
HTTP Upload
XML
XMP
Zip

More Examples...
String
Amazon S3
Email Object
DKIM / DomainKey
NTLM
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

 

Create 128-bit AES Encrypted Self-Extracting EXE

 Chilkat Python Module Downloads for Windows, Linux, and MAC OS X

Creates a strong-encrypted SFX (self-extracting executable)

# file: SelfExtractExeAes.py

import chilkat

# Create a 128-bit AES encrypted self-extracting EXE
zip = chilkat.CkZip()
zip.UnlockComponent("anything for 30-day trial")

# Set the Encryption property = 4, which indicates AES encryption.
zip.put_Encryption(4)
# The key length can be 128, 192, or 256.
zip.put_EncryptKeyLength(128)
zip.SetPassword("secret")

# Calling NewZip does not actually create a file on disk.  The filename
# argument indicates the name of the zip file name to be created when
# WriteZip is called.  However, in this example, WriteExe is called instead,
# so the zip filename is meaningless.
zip.NewZip("notUsed.zip")
zip.AppendFiles("exampleData2/*",True)

# Write the self-extracting EXE
zip.WriteExe("example.exe")






 

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