Visual C++ Examples

ChilkatHOMEAndroid™Classic ASPCC++C#Delphi ActiveXDelphi DLLVisual FoxProJavaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerShellPythonRubySQL ServerUnicode CUnicode C++Visual Basic 6.0VB.NETVBScript

C++ Examples

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


More Examples...
Amazon S3
NTLM
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

 

 

 

 

 

 

 

 

Encrypt XML Node Content

Encrypt the contents of an XML node.

Downloads:

MS Windows Visual C/C++ Libraries
Linux/CentOS C/C++ Libraries
MAC OS X C/C++ Libraries
Solaris C/C++ Libraries
C++ Builder Libraries
FreeBSD C++ Libraries
HP-UX C++ Libraries
BlackBerry QNX C++ Libraries
#include <CkXml.h>

void ChilkatSample(void)
    {

    CkXml xml;

    //  The Chilkat XML component is freeware.

    //  Load an XML document from a string:
    xml.LoadXml("<company><name>Chilkat Software, Inc.</name><url>http://www.chilkatsoft.com/</url><phone>630-784-9670</phone></company>");

    //  Get the "name" node:
    CkXml *xmlName = 0;
    xmlName = xml.FindChild("name");

    //  Encrypt the contents using 128-bit AES:
    xmlName->EncryptContent("secretPassword");

    //  Display the new document, with the encrypted content:
    printf("Encrypted:\n");
    printf("%s\n",xml.getXml());

    //  Now decrypt:
    xmlName->DecryptContent("secretPassword");

    //  Display it again...
    printf("Decrypted:\n");
    printf("%s\n",xml.getXml());
    }

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