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

 

 

 

 

 

 

AES String Encryption w/ Base64 Encoding

Download: Chilkat .NET Assemblies

VB.NET example code demonstrating how to 128-bit AES encrypt a string and return the encrypted data as a base64 encoded string. Also shows how to do the decryption.

        Dim crypt2 As New Chilkat.Crypt2()
        crypt2.UnlockComponent("anything for 30-day trial")

        crypt2.CryptAlgorithm = "aes"
        crypt2.EncodingMode = "base64"
        crypt2.KeyLength = 128
        crypt2.SecretKey = crypt2.GenerateSecretKey("myPassword")

        Dim encrypted As String
        encrypted = crypt2.EncryptStringENC("This string will be 128-bit AES encrypted and returned in base64 format")
        MessageBox.Show(encrypted)

        Dim decrypted As String
        decrypted = crypt2.DecryptStringENC(encrypted)
        MessageBox.Show(decrypted)




 

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

Mail Component · XML Parser