cdiego

Encriptación con C#

Jul 13th, 2013
2,077
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. //AGREGAR EL SIGUIENTE USING
  2. //using System.Security.Cryptography;
  3.  
  4. string login_pass = textBox3.Text;
  5. MD5 md5 = MD5.Create();
  6. byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(login_pass );
  7. byte[] hash = md5.ComputeHash(inputBytes);
  8. login_pass = BitConverter.ToString(hash).Replace("-", "");
Advertisement
Add Comment
Please, Sign In to add comment