byte array padding c# code example
Example 1: string from byte array c#
var str = System.Text.Encoding.Default.GetString(result);
Example 2: c# xor byte array
for (int i = 0; i < size_of_your_array; i++)
Result[i] = (byte)(BytesToXor[i] ^ Key[i]);