Decode result from ByteArray.readUTFBytes troubles

NexVision

New Member
I create online flash game, and for transfer game result to game server i using RC4 cryptography. \[code\]var resultBytes:ByteArray = new ByteArray();resultBytes.writeUTFBytes(rawData);rc4.encrypt(resultBytes);resultBytes.position = 0;var toServer:String = readUTFBytes(resultBytes.length);\[/code\]On server side work C# ASP.Net service with same code\[code\]byte[] resultBytes = Encoding.UTF8.GetBytes(requestData);\[/code\]and AS3 toServer string equivalent
 
Back
Top