Visual Basic Examples

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

VB Examples

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

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


VB Strings
VB Byte Array

 

 

 

 

 

 

 

Twofish String Encryption

Download Chilkat Crypt ActiveX

Visual Basic sample source code demonstrating Twofish encryption of strings.

Private Sub Command1_Click()

    Dim crypt As New ChilkatCrypt2
    crypt.UnlockComponent "UnlockCode"
    
    ' Use the Twofish encryption algorithm
    crypt.CryptAlgorithm = "twofish"
    ' Use 256-bit encryption.
    crypt.KeyLength = 256
    ' Set the password to be "Secret"
    crypt.SecretKey = crypt.GenerateSecretKey("Secret")
    ' Convert Unicode string to iso-8859-1 before encrypting.
    crypt.Charset = "iso-8851-1"
    ' We want the output in string form, so encode it
    ' using hex.  We could also use "base64" here.
    crypt.EncodingMode = "hex"
    
    ' Encrypt...
    Text2.Text = crypt.EncryptStringENC(Text1.Text)
    
    ' Decrypt...
    Text3.Text = crypt.DecryptStringENC(Text2.Text)
    
End Sub

 

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