Ejemplo n.º 1
0
        public string Desencriptar(string texto)
        {
            UTF8Encoding ByteConverter = new UTF8Encoding();

            byte[] cifradoBytes = Encriptacion.StringHexToByteArray(texto);

            byte[] descifradoBytes = rsa.Decrypt(cifradoBytes, true);

            return(ByteConverter.GetString(descifradoBytes));
        }