public Texto.Texto cifrar_texto(Texto.Texto texto)
        {
            Texto_plano.Texto_plano texto_cifrado = new Texto_plano.Texto_plano("");
            foreach (String grupo in texto.texto_en_grupos(this.grupos))
            {
                texto_cifrado.agregar_grupos_caracteres(cifrado_inverso.cifrar_texto(new Texto_plano.Texto_plano(grupo)).obtener_texto());
            }

            return(texto_cifrado);
        }
        public Texto.Texto cifrar_texto(Texto.Texto texto)
        {
            Texto_plano.Texto_plano texto_cifrado = new Texto_plano.Texto_plano("");
            foreach (char caracter in texto.obtener_texto())
            {
                texto_cifrado.agregar_caracter(this.cifrar_caracter(caracter));
            }

            return(texto_cifrado);
        }
示例#3
0
 public Texto.Texto cifrar_texto(Texto.Texto texto)
 {
     char[] charArray = texto.obtener_texto().ToCharArray();
     Array.Reverse(charArray);
     return(new Texto_plano.Texto_plano(new string(charArray)));
 }