Convert PHP code to Flash AS3

Imebatilisha Ilichapishwa Apr 8, 2011 Kulipwa wakati wa kujifungua
Imebatilisha Kulipwa wakati wa kujifungua

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 :

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

ex; [login to view URL]

'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 [login to view URL] 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.

Adobe Flash PHP Software Architecture

Kitambulisho cha Mradi: #1016863

Kuhusu mradi

Pendekezo 1 Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

Wafanyakazi huru 1 wanaweka zabuni ya kadri ya $30 kwenye kazi hii

IrisBlaze

Consider it done!

$30 USD kwa siku 1
(Maoni 9)
4.8