using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace Hashing
{
class Program
{
static void Main(string[] args)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
UTF8Encoding utf8 = new UTF8Encoding();
for (int i = 0; i < 10; i++)
{
Console.WriteLine(BitConverter.ToString(md5.ComputeHash(utf8.GetBytes(i.ToString()))));
}
Console.ReadKey();//Stops the command prompt from exiting
} //End Main
} //End Class
}
You must login or register to view this content. |
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace Hashing
{
class Program
{
static void Main(string[] args)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
UTF8Encoding utf8 = new UTF8Encoding();
for (int i = 0; i < 10; i++)
{
string hash, cleanhash;
hash = cleanhash = "";
hash = BitConverter.ToString(md5.ComputeHash(utf8.GetBytes(i.ToString())));
foreach (char a in hash)
{
if (a.ToString() != "-")
{
cleanhash += a;
}
}
Console.WriteLine(cleanhash);
}
Console.ReadKey();//Stops the command prompt from exiting
} //End Main
} //End Class
}
You must login or register to view this content. |
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace Hashing
{
class Program
{
static void Main(string[] args)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
UTF8Encoding utf8 = new UTF8Encoding();
for (int i = 0; i < 10; i++)
{
Console.WriteLine(BitConverter.ToString(md5.ComputeHash(utf8.GetBytes(i.ToString()))));
}
Console.ReadKey();//Stops the command prompt from exiting
} //End Main
} //End Class
}
You must login or register to view this content. |
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
namespace Hashing
{
class Program
{
static void Main(string[] args)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
UTF8Encoding utf8 = new UTF8Encoding();
for (int i = 0; i < 10; i++)
{
string hash, cleanhash;
hash = cleanhash = "";
hash = BitConverter.ToString(md5.ComputeHash(utf8.GetBytes(i.ToString())));
foreach (char a in hash)
{
if (a.ToString() != "-")
{
cleanhash += a;
}
}
Console.WriteLine(cleanhash);
}
Console.ReadKey();//Stops the command prompt from exiting
} //End Main
} //End Class
}
You must login or register to view this content. |
Copyright © 2024, NextGenUpdate.
All Rights Reserved.