Exemple #1
0
        public static string CreateNameRULatin(int sex = 0, int fila = 2)
        {
            if (sex == 0)
            {
                sex = CreateRandInt(1, 3);
            }
            string names = CreateNameRU(sex, fila);

            return(ParsersExtractors.RUtoLatin(names) as string);
        }
Exemple #2
0
        public static string CreatePassphraseBG(int minWords = 4, int maxWords = 6, int maxChars = 999)
        {
            int words = new Random().Next(minWords, maxWords);

            string[] ws     = Informers.chopEnbeddedString("HttpVehicle.Data.Words_BG.txt");
            Random   ran    = new Random();
            string   phrase = "";

            for (int i = 0; i < words; i++)
            {
                phrase += ws[ran.Next(0, ws.Count())];
            }
            if (phrase.Length > maxChars)
            {
                phrase = phrase.Substring(0, maxChars);
            }

            return(ParsersExtractors.Passwordize(phrase) as string);
        }