VB.NET Examples

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

VB.NET Examples

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

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

Byte Array
VB.NET FTPS
System.IO

 

 

 

 

 

 

Encrypt Strings in VB.NET

Download: Chilkat .NET Assemblies

VB.NET sample program demonstrating how to encrypt/decrypt strings using 128-bit AES encryption.

   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim crypt As New Chilkat.Crypt()

        crypt.UnlockComponent("unlockCode")
        crypt.SetAlgorithmRijndael()
        crypt.SetSecretKeyViaPassPhrase("secretPassword")
        ' Encrypt using 128-bit AES and encode the encrypted binary data in Base64
        TextBox2.Text = crypt.EncodeBase64(crypt.EncryptStr(TextBox1.Text))
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim crypt As New Chilkat.Crypt()

        crypt.UnlockComponent("unlockCode")
        crypt.SetAlgorithmRijndael()
        crypt.SetSecretKeyViaPassPhrase("secretPassword")
        ' Encrypt using 128-bit AES and encode the encrypted binary data in Base64
        TextBox3.Text = crypt.DecryptStr(crypt.DecodeBase64(TextBox2.Text))
    End Sub





Important: The download for this example does not contain the ChilkatDotNet.dll which
must be downloaded and installed separately at http://www.chilkatsoft.com/downloads.asp.
Once installed, add a reference to the DLL in the project by following the instructions at
http://www.example-code.com/vbdotnet/step2.asp

 

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

Mail Component · XML Parser