Beispiel #1
0
        private static string CaptainAmerica(string[] values, double startingFibonacciNumber)
        {
            string base64 = "";

            //Shift vowels to the right
            values = UtilityClass.ShiftVowels(values);

            //Sort in reverse
            values = UtilityClass.ReverseAlphabeticSort(values);

            //Replace vowels with Fibonacci
            values = UtilityClass.ReplaceVowelsFibonacci(values, startingFibonacciNumber);

            //Concatenate values into one string, using ASCII
            string concatenatedString = UtilityClass.ConcatenateWords(values);

            //Encode
            base64 = UtilityClass.StringToBase64String(concatenatedString);
            return(base64);
        }
Beispiel #2
0
        private static string Thor(string[] values, double startingFibonacciNumber)
        {
            string base64 = "";

            //Split english words
            values = UtilityClass.SplitEnglishWords(values);

            //Put values in alphabetic order
            values = UtilityClass.AlphabeticSort(values);

            //Alternate consonants
            values = UtilityClass.AlternateConsonants(values);

            //Replace vowels with Fibonacci
            values = UtilityClass.ReplaceVowelsFibonacci(values, startingFibonacciNumber);

            //Concatenate using asterisks
            string concatenatedString = UtilityClass.ConcatenateWordsWithAsterik(values);

            //Encode
            base64 = UtilityClass.StringToBase64String(concatenatedString);
            return(base64);
        }