Convert PHP code to Flash AS3

I need the following PHP function converted to AS3:

function _decrypt($buffer, $key) {

$decrypted = "";

$k2 = $key;

$k2 = $k2 * 3;

for ($i = 0; $i < strlen($buffer); $i += 4) {

$s = substr($buffer, $i, 4);

list($i2) = array_values(unpack("V", $s)); // little endian

$i2 = $i2 ^ $k2;

$s2 = pack("V", $i2);

$decrypted .= $s2;


$decrypted = strrev($decrypted);

return $decrypted;


You can test your routine against the output at :

[url removed, login to view]{any number between 20,000 and 50000}

ex; [url removed, login to view]

'k' is the value used in $key in the PHP code above.

To see the unencoded output, set k to 0 (k=0).

I am also including the PHP and test XML file that you find at getConfig.php. The [url removed, login to view] file has the encryption routine.

The firsts bidder to provide a working example will win the bid.

The working example should be an SWF file that allows me to enter the full URL including the KEY and shows the the decoded text in a textfield.

Maximum bid allowed will be $30.

Compétences : Adobe Flash, PHP, Architecture Logicielle

en voir plus : php code for, k to the i, flash as3 0, find code, code your, as3 0, php as3, php code as3, php function , php code, php code test, kleelof, k2, flash as3, decrypted, decoded, convert php, convert a list, as3, php text xml, flash test, output php, list code, convert xml text, convert output

Concernant l'employeur :
( 45 commentaires ) Oakland, United States

Nº du projet : #1016863

2 freelance font une offre moyenne de $30 pour ce travail


I can do it

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(228 Commentaires)

Consider it done!

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(9 Commentaires)