ASP Examples

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

ASP Examples

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

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

 

 

 

 

 

 

Binary to Base64 Encoding

Download Chilkat Crypt ActiveX

ASP Script to convert from binary to Base64 encoding. This sample code creates a binary byte array and encodes it to a base-64 string.

<html>
<body>
<%
set crypt = Server.CreateObject("Chilkat.Crypt2")
crypt.UnlockComponent "anything"

crypt.CryptAlgorithm = "none"
' Encode the output in a base64 string.
crypt.EncodingMode = "base64"

' Create a byte array containing 20 bytes.
dim bData(19)
for i = 0 to 19
bData(i) = CByte(i)
next

' EncryptBytesENC accepts a binary byte array and returns an base-64 encoded string.
base64 = crypt.EncryptBytesENC(bData)

Response.Write "<p>" + base64 + "</p>"

%>
</body>
</html>
 

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