//
you're reading...
C Sharp .NET, Codes

Code Băm Password Theo Phương Thức MD5

Code Băm Password Theo Phương Thức MD5 Bằng C#:

using System;
using System.Security.Cryptography;
using System.Text;

private string HashMD5(string inputString)
{
    UTF32Encoding u = new UTF32Encoding();
    byte[] bytes = u.GetBytes(inputString); 
    MD5 md = new MD5CryptoServiceProvider(); 
    byte[] result = md.ComputeHash(bytes);
    return Convert.ToBase64String(result); 
 }

~Sưu Tầm~

Advertisements

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: