Null character inside string problem

Hello,

I’m using an encryption algorithm (RC4) to send some data over the network.
The problem: when i encrypt my string (text one), with rc4 algorithm ,sometime i get the ‘\0’ character inside my string. Ex: (i will write this into hexa for easy reading) “77-EA-FC-FF-00-72-92-04” and now the unity c# string see only “77-EA-FC-FF” as a string, the 00 is considered as “null terminated string”. There are some method, a variable to store the whole original string into?

Note: In c# (MS one) the algorithm works just fine.

Thanks in advance.

Ohh sorry… it’s ok
I just saw that the length of the string it’s the same.

Back to debuging … i think is somewhere in the network packaging.

Good luck!

Meta: can we give users the ability to delete their own threads if there’s no replies?