Пример #1
0
        public string Decrypt(string encodedText)
        {
            var keyText = CharacterManipulation.RepeatToFill(Keyword, encodedText.Length);

            return(CharacterManipulation.ShiftCharacters(Alphabet, keyText, encodedText, true));
        }
Пример #2
0
        public string Encrypt(string plainText)
        {
            var keyText = CharacterManipulation.RepeatToFill(Keyword, plainText.Length);

            return(CharacterManipulation.ShiftCharacters(Alphabet, keyText, plainText, true));
        }