ASP Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

ASP Examples

ASP String
ASP Byte Array
Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
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...
Email Object
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

Encrypt and Decrypt an XML Node

Encrypt and decrypt the contents of a node.

Download Chilkat ASP XML ActiveX

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set xml = Server.CreateObject("AspXml.AspXml")

xml.Tag = "test"
xml.Content = "1234567890"

'  The EncryptNode method encrypts the content
'  of a node.  It does not encrypt the entire sub-tree beneath
'  a node.

xml.EncryptNode "myPassword"

xmlStr = xml.GetXml()
Response.Write Server.HTMLEncode( xmlStr) & "<br>"
'  Output is: <test>N7lSGKJjQ0sQ/bqmXdy0Og== </test>

'  Now restore the content:
xml.DecryptNode "myPassword"

xmlStr = xml.GetXml()
Response.Write Server.HTMLEncode( xmlStr) & "<br>"
'  Output is: <test>1234567890</test>

%>
</body>
</html>

 

Need a specific example? Send a request to support@chilkatsoft.com

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