C#.NET Script – MD5 Encryption Class
Do you need to hash secret values (ex:passwords) with md5 algorithm in C#.NET? Actually, .NET framework has provided this cryptography, but, you cannot use it directly like what you can do the same thing in PHP. In PHP, you just need to call md5 function. In C#.NET, you have to define the function yourself. For your information, the encrypted values will not be able to be decrypted because md5 is a one-way encryption.
Source Code
//By : Xhanch Studio
//URL : http://xhanch.com/
//First thing first, you have to include these references
using System;
using System.Text;
using System.Security.Cryptography;
public string md5 (string plainText){
MD5 enc = MD5.Create();
byte[] rescBytes = Encoding.ASCII.GetBytes (plainText);
byte[] hashBytes = enc.ComputeHash (rescBytes);
StringBuilder str = new StringBuilder();
for (int i = 0; i < hashBytes.Length; i++){
str.Append (hashBytes[i].ToString ("X2"));
// You may use this alternative command to have the hex string
// in lower-case letters instead of upper-case
// str.Append(hashBytes[i].ToString("x2"));
}
return str.ToString();
}
Incoming search terms:
md5 decrypt,
md5 encryption in c# net,
C# Encryption,
Decrypt MD5 c#,
md5 encrypt script,
c# md5 encryption,
c md5 encryption,
c md5 encryption decryption,
c net encryption,
md5 decrypt c#,
encryption class in net,
c# md5,
c# md5 script,
c# md5 encryption decryption,
md5 encryption in c net,
c# net encryption,
md5 C sharp,
md5 encrypt decrypt c#,
md5 encoding in c sharp,
md5 decryption in c#,
md5 c sharp -filetype:pdf -filetype:ps -filetype:dwf -filetype:kml -filetype:kmz -filetype:xls -filetype:ppt -filetype:doc -filetype:rtf -filetype:swf,
MD5 class in c sharp,
md5 class c sharp,
how to decryption md5 c#,
c# md5 decryption,
c# md5 decrypt,
window document location href,
net encryption class,
c# decrypt md5 hash,
md5 decryption,
MD5 class password decrypt + net,
md5 class#,
md5 code c,
simple encryption script in c# net,
security encrypt class c#,
md5 decrypt script c#,
md5 decryption in c net,
md5 decrypter c# code,
md5 decrypt net c# md5,
VB encription,
md5 c# decode jquery,
filetype: pdf c sharp,
Filetype:ppt C# Net,
how to decrypt md5 hash in c,
how to decrypt password in md5 in net code,
سكربتmd5,
wp manga decode,
how to encrypt decrypt password in C,
how to encrypt password in c# net,
make md5 encrypter in c#,
md5 encryption C# NET,
decrypt md5 c# code,
php md5 X2,
net md5 encryption,
md5 encryption decryption in c# 4 0,
md5 encryption decryption in net,
md5encrypt c#,
md5 encryption decryption using c# net,
md5decryption in c#,
md5 класс на c#,
md5 in c#,
md5 hash decryption in c net code,
MD5 Encryption/Decryption in c#,
MD5 encryption script,
md5 encryption using c# net,
md5 encryption command in c sharp,
md5encryption c,
md5 decryptor,
md5 encoding and decoding in c#,
net framework 4 encrypt decrypt md5,
md5 encrypt c#,
net encryption c sharp,
md5 encrypt/decrypt,
MD5 encryption and decryption in c sharp,
md5 encryption and decryption in c#,
md5 encryption and decryption in c# net,
md5 encryption c#,
md5 encryption c# and php,
md5 encryption with C sharpe,
as3 c# encrypt decrypt,
C# MD5 class,
c# md5 encrypt,
c# md5 encrypt password,
c# MD5 encrypt script,
C# md5 encrypter,
c# md5 şencrypt ecrypt,
c# net code to decrypt a password encrypted with md5,
c# net file type:pdf,
c# net md5 encryption and decryption,
C# net md5 HEXADECIMAL ENCRYPT DECRYPT,
c# one way encryption,
C# script with md5,
C# simple MD5 computation program,
clase md5encrypt in c#,
c# explode#sclient=psy,
C# encryption class,
as3 post to c# md5 encryption,
c # net scripts,
c encrypt,
c md5 encrypt, xhanch
Related posts:
- C#.NET Script – Associative Array
- PHP Script – Google Page Rank (PR) Checker
- PHP Script – Using MySQLi
- Action Script – Walled Bouncing Ball
- JavaScript – Password Generator
Posted on 2010-04-11 by Susanto BSc in C#.NET Script, Free Script
Tagged as: .net, C#, C#.NET, class, encryption, free, hash, md5, password, script, security
Leave a Reply
You must be logged in to post a comment.