Пример #1
0
 public static string GetDownloadTitle(string t)
 {
     if (Global.config.encrypt_title.Get <bool>())
     {
         return(Base64.Encrypt(t));
     }
     else if (Global.config.random_title.Get <bool>())
     {
         return(Random2.RandomString(Global.RandomStringLength));
     }
     else
     {
         return(t);
     }
 }
Пример #2
0
 public static string GetDownloadTitle(string t)
 {
     if (Global.EncryptTitle)
     {
         return(Base64.Encrypt(t));
     }
     else if (Global.RandomTitle)
     {
         return(Random2.RandomString(Global.RandomStringLength));
     }
     else
     {
         return(t);
     }
 }