Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Base64 String EncodingDownload: Chilkat .NET Assemblies To access the encoding and charset conversion functionality without encryption, set the encryption algorithm to "none". This example shows how to base64-encode a string. ' This example uses the Chilkat .NET encryption library, which can be downloaded
' at http://www.chilkatsoft.com/downloads.asp
' Create an instance of the Chilkat encryption class.
Dim crypt As New Chilkat.Crypt2()
' Any code begins the 30-day trial.
crypt.UnlockComponent("30-day-trial")
' Do not use any encryption algorithm.
crypt.CryptAlgorithm = "none"
' Tell the encryption object to return a base64 encoded string.
crypt.EncodingMode = "base64"
' Base64 encode a string.
TextBox2.Text = crypt.EncryptStringENC("This is a test")
' Base64 decode
TextBox3.Text = crypt.DecryptStringENC(TextBox2.Text)
Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.