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

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

            return(CharacterManipulation.ShiftCharacters(Alphabet, keyText, encodedText, true));
        }
Ejemplo n.º 3
0
        public string Encrypt(string plainText)
        {
            string keyText = Keyword + plainText.Substring(0, plainText.Length - Keyword.Length);

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