Nicely Done!
Some unwanted characters while decrypting though! Still Nice File 
This project has two files:
oto_crypt.as – for flash oto_crypt.php – for php
Flash
To use oto_crypt.as file you must put in your project’s first frame the following line: #include “folder\oto_crypt.as” the “folder” is the folder where the file oto_crypt.as is saved.
to encrypt any string you must call oto_encrypt(“Your String” ) ;
to decrypt any encrypted string you must call oto_decrypt(“encrypted string” ) ;
PHP for test please visit http://www.oto.gr/crypt/encrypt_test.php
To use oto_crypt.php file you must put in your project’s first frame the following line: include ‘folder/oto_crypt.php’; the “folder” is the folder where the file oto_crypt.php is saved.
to encrypt any string you must call oto_encrypt(“Your String” ) ;
to decrypt any encrypted string you must call oto_decrypt(“encrypted string” ) ;
The aim that oto_crypt was created, was simple encryption to send encrypted string from flash to php end decrypt from php, because if you have flash shop, or you are sending some variables that you want no to be readable from other, you can just encrypt a string in flash and decrypt in php or backwards.
If you want that your encryption was unique and not decryptionable from others you can just change array values, in my example there are the following array:
in Flash:
var randomArr:Array = new Array(2, 5, 16, -1, 2, -3, 6, 20, 10, -4, 2, -2, 3, 1, -0, 1, 4, -4, 5, 2, 3, 1, 4);
in PHP :
$randomArr = array(2, 5, 16, -1, 2, -3, 6, 20, 10, -4, 2, -2, 3, 1, -0, 1, 4, -4, 5, 2, 3, 1, 4);
As you see the array elements from flash array and php array are same.
!!!! Attention: If you change one array another array must have the same elements.
Also your array can have unlimited elements.
PDF help and sample files are included
My Files:
Posted 4 months ago
Nicely Done!
Some unwanted characters while decrypting though! Still Nice File 
well done this is usefull but still has some bugs on longer strings but for 1 word passwords it would work great.
Posted 3 months ago
yes it has some bugs, to avoid it in array you must use small numbers, no greater than 10 or smaller -10
thanks
i really need to work a lot with xml and can i encrypt the xml file from actionscript so no one can read the xml file
Posted about 1 month ago
mastr3s XML file is very big to encrypt with this and you will have some problems in decoding. I don’t suggest you. 80% will work but 20% I don’t guarantee,
Posted about 1 month ago
ok. if i buy this code and i need it for read the link that already encrypted. For example i have the swf image loader (http://nogrids.com/previews/photoshopmaster/example2.html) and the xml path is the one that i want to encrypted so can i do that i can pay even more if it work. So all i need is to hide the XML path. if you can tell me mastr3s@gmail.com
Posted about 1 month ago