zoukankan      html  css  js  c++  java
  • 原创:MD5 32位加密软件

    网站后台数据库切勿使用明文保存密码,否则一旦黑客拿下你的Webshell,后果不堪设想。

    网站后台密码加密大多数采用的就是MD5算法加密。
    今天给大家送一个本人用c#简单编写的MD5 32位加密程序,虽然没有什么技术含量,但保证没有后门。

    程序截图:

    开放源码如下:

    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

  • 相关阅读:
    剑指Offer-Python(6-10)
    Python对MySQL进行增删查改
    剑指Offer-Python(1-5)
    转载:Python中collections模块
    读取单词文件并查某个单词出现的次数
    Python正则表达式-换行的匹配
    Python爬虫-换行的匹配
    转载:Pycharm的常用快捷键
    Python 正则表达式
    Python的类与对象
  • 原文地址:https://www.cnblogs.com/xingyunblog/p/3925882.html
Copyright © 2011-2022 走看看