示例#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));
        }