string encodeStr = System.Convert.ToBase64String(buf);
int subCount = encodeStr.Length/76 + 1;
string[] temp = new string[subCount];
for(int i=0;i<subCount;i++)
{
if (i==subCount-1)
{
temp[i] = SGIP_EncodeStr.Substring(i*76,SGIP_EncodeStr.Length-i*76) + "\n";
}
else
{
temp[i] = SGIP_EncodeStr.Substring(i*76,76) + "\n";
}
}
encodeStr = string.Join("",temp);
int subCount = encodeStr.Length/76 + 1;
string[] temp = new string[subCount];
for(int i=0;i<subCount;i++)
{
if (i==subCount-1)
{
temp[i] = SGIP_EncodeStr.Substring(i*76,SGIP_EncodeStr.Length-i*76) + "\n";
}
else
{
temp[i] = SGIP_EncodeStr.Substring(i*76,76) + "\n";
}
}
encodeStr = string.Join("",temp);