Ejemplo n.º 1
0
        public string Decrypt(string encodedText)
        {
            var keyText = CharacterManipulation.RepeatToFill(Keyword, encodedText.Length);

            return(CharacterManipulation.ShiftCharacters(Alphabet, keyText, encodedText, true));
        }
Ejemplo n.º 2
0
        public string Encrypt(string plainText)
        {
            var keyText = CharacterManipulation.RepeatToFill(Keyword, plainText.Length);

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