Encriptación con Nuget Eramake.eCryptography




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Encriptacion_II
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


private void encriptar_Click(object sender, EventArgs e)
{
textencriptado.Text = Eramake.eCryptography.Encrypt(entrada.Text);
}

private void desencriptar_Click(object sender, EventArgs e)
{
textdesencriptado.Text = Eramake.eCryptography.Decrypt(textencriptado.Text);
}

private void button1_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}




Instalamos y compilamos el paquete Eramake.eCryptography




eCryptography (Encrypt & Decrypt)

string result = Eramake.eCryptography.Encrypt("Eramake");

result = Eramake.eCryptography.Decrypt(result);








No hay comentarios:

Publicar un comentario

Nota: solo los miembros de este blog pueden publicar comentarios.