Ejemplo n.º 1
0
 public static string[] Splitter(string str)
 {
     string[] basArr  = str.Split(new char[] { '|' });
     string[] realArr = new string[basArr.Length];
     for (int i = 0; i < basArr.Length; i++)
     {
         realArr[i] = Base64Change.Base64ToString(basArr[i]);
     }
     return(realArr);
 }
Ejemplo n.º 2
0
        public static string Packager(string[] str)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(Base64Change.StringToBase64(str[0]));
            for (int i = 1; i < str.Length; i++)
            {
                sb.Append('|');
                sb.Append(Base64Change.StringToBase64(str[i]));
            }
            sb.Append(';');
            return(sb.ToString());
        }