privatestaticbyte[] KCS7Encoder(int text_length) {
int num = 32;
int a = num - text_length % num;
if (a == 0)
a = num;
char ch = Cryptography.chr(a);
string s = "";
for (int index = 0; index < a; ++index) {
s += (string)(object)ch;
//s += ch.ToString();
}
returnEncoding.UTF8.GetBytes(s);
}
privatestaticchar chr(int a) {
return (char)(byte)(a & (int)byte.MaxValue);
}