public int AddPadding( byte[] input, int inOff) { byte code = (byte)(input.Length - inOff); while (inOff < (input.Length - 1)) { input[inOff] = (byte)random.NextInt(); inOff++; } input[inOff] = code; return code; }