# Xml Data Decrypt

**URL:** <https://forum.kirupa.com/t/xml-data-decrypt/299371>\
**Category:** flash\
**Created:** [November 4, 2009, 2:29am UTC](https://forum.kirupa.com/t/xml-data-decrypt/299371 "2009-11-04T02:29:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tecnoweb](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tecnoweb](https://forum.kirupa.com/u/Tecnoweb)\
**Post date:** [November 4, 2009, 2:29am UTC](https://forum.kirupa.com/t/xml-data-decrypt/299371/1 "2009-11-04T02:29:26Z")

</div>

Hi,  
I hope some of you can help me … and some days I get changes to my code and then log on as premium users have found in a class that crypto network and decrypt the XML file and then makes it unreadable by sniffer my problem and how to implement the code in onLoad insert and …

```php
var = new Crypter XorCrypter ();  
 crypter.Decrypt (DataLoadedOnXmlFiles);  

```

```php
if(dati_xml.loaded){
trace(this);
// this is a example string loaded from this
//"154454654478678647847847847584784786478647847847847874847847"
           vector = new Array();
            nodess= this.firstChild.childNodes;
            i = 0;
            while(i < nodess.length){
                vector [nodess*.nodeName] = nodess*.firstChild.nodeValue;
                i++;
            }
       .....

```

if i try put on

```php
var test = "154454654478678647847847847584784786478647847847847874847847";
var EncrypterXML = new XorCrypter();
Decrypt = EncrypterXML.Decrypt(test);

```

the result is

```php
<xmlData>
<result>OK</result>
</xmlData>

```

so how to insert on onLoad this function to automatic decrypt data?  
sorry for my english… i’m italian (-:  
regards  
Marco
