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

 

 

 

 

 

 

Convert Binary Bytes to a Quoted-Printable String

Download Chilkat Crypt ActiveX

ASP Script to convert from a binary byte array into a quoted-printable string.

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

crypt.CryptAlgorithm = "none"
' Encode the output in a quoted-printable string.
crypt.EncodingMode = "quoted-printable"

' Create a byte array containing 61 bytes.
dim bData(60)
for i = 15 to 75
bData(i-15) = CByte(i)
next

' The output in this case looks like:
' =0F=10=11=12=13=14=15=16=17=18=19=1A=1B=1C=1D=1E=1F !"#$%&'()*+,-./01234= 56789:;<=3D>?@ABCDEFGHIJK

' EncryptBytesENC accepts a binary byte array and returns a quoted-printable string.
qpEncoded = crypt.EncryptBytesENC(bData)

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

%>
</body>
</html>
 

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