原创:MD5 32位加密软件
生活随笔
收集整理的這篇文章主要介紹了
原创:MD5 32位加密软件
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
網(wǎng)站后臺數(shù)據(jù)庫切勿使用明文保存密碼,否則一旦黑客拿下你的Webshell,后果不堪設(shè)想。
網(wǎng)站后臺密碼加密大多數(shù)采用的就是MD5算法加密。
今天給大家送一個本人用c#簡單編寫的MD5 32位加密程序,雖然沒有什么技術(shù)含量,但保證沒有后門。
程序截圖:
開放源碼如下:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Security.Cryptography;namespace MD5加密程序 {public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){string s = textBox1.Text;textBox2.Text= GetMD5(s);}public static string GetMD5(string str){MD5 md5 = MD5.Create();byte[] buffer = Encoding.Default.GetBytes(str);byte[] MD5buffer = md5.ComputeHash(buffer);string strnew = "";for (int i = 0; i < MD5buffer.Length; i++){strnew += MD5buffer[i].ToString("x2");}return strnew;}private void label3_Click(object sender, EventArgs e){System.Diagnostics.Process.Start("http://www.cnblogs.com/xingyunblog/");}private void label4_Click(object sender, EventArgs e){System.Diagnostics.Process.Start("http://bbs.hx95.com/index.php"); }} }軟件下載地址:
鏈接:http://pan.baidu.com/s/1kTzacFt 密碼:0goe
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的原创:MD5 32位加密软件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VS2015编译OpenDDS
- 下一篇: 小米蓝牙音响驱动_小米手机绝佳配件,20