muhaznwifey 0 Newbie Poster

Hello I need help encrypting just the password from a XML file. The file follows the W3C XML syntax. I think I can achieve it by by encrypting the xml element content like this example:

<?xml version='1.0'?> 
  <PaymentInfo xmlns=''>
    <Name>John Smith</Name>
    <CreditCard Limit='5,000' Currency='USD'>
        <EncryptedData xmlns=''
      <Issuer>Example Bank</Issuer>

But I do not know how to encrypt my password. I have been searching on the internet for days and do not understand how I can encrypt the password. This xml file is the settings for an application from a vendor and will need to go on a sftp server. I just want to make sure if I encrypt the password it will work once its loaded on the server. Here is a sample of my code:

<?xml version="1.0"?>
    <EmailAddress> '' </EmailAddress>
    <EmailAddressReplyTo> </EmailAddressReplyTo>
    <EncryptedData xmlns=''
                <CipherValue></CipherValue> --Password is !Sn0p5t@n!12 Note: This is not the realpassword. Just posting an example for help--

Please help!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.