Small white C # form series-06. MD5 Series Encryption Gadget

Source: Internet
Author: User
Tags md5 encryption

Encryption and decryption from the beginning of the user information of XX Millions of has been paid attention to, these two years with cattle, in fact, encryption is not what assorted, a thought can be strong favorable ciphertext, when your database is stolen by hackers your strong encryption will be consumed by hackers a lot of time, This is for you to save the site to save the server left a lot of space, into a few years MD5 very fire, and later XMD5 also slowly popular with a variety of perverted encryption way up, the inverse of the day to provide you with a few very simple and simple ideas (this is the simple idea of a lot of decryption sites have collapsed ...) )

In order to meet the needs of the webmaster, the variant of the MD5 again, resulting in a fixed number of ciphertext combined with international standards and the need for resource savings, the 1.01 version was born "Update" 1.01 download (4.0 framework) Http://pan.baidu.com/s/1gdvfXkR"source See below"Software download (. NET 4.0 framework) Http://pan.baidu.com/s/1kT5LvCF "source see below" Seconds to kill all the mainstream anti-MD5 site under the variation of MD5, I'm not happy to try again ...  Wait a minute... First, design drawings: (more on the idea) two, code analysis:
1, 32-bit MD5 encryption: if (!string. IsNullOrEmpty (Inputtxt.text)) {MD5 MD5 = MD5. Create ();//md5 is an abstract class that cannot be instantiated, creating objects through the Create () static methodbyte[] buffer = Encoding.Default.GetBytes (Inputtxt.text);//Translate the text you want to convert to buffer[in the default encoding format]byte[] BufferMd5 = md5.computehash (buffer);//Turn rightStringBuilder sbMd5 = new StringBuilder ();//For memory and other factors I'm going to use StringBuilder.                for  (int  i = 0; i < buffermd5.length; i++)          {            sbmd5.append (BufferMd5[i] . ToString ("X2"));//authentic md5 32 bit         }                 md5txt.text = sbmd5.tostring ();     } 2, MD5 32-bit reinforced: if  (!string. IsNullOrEmpty (inputtxt.text))     {        md5  md5 = md5. Create ();                 byte[ ] buffer = encoding.default.getbytes (Inputtxt.text);              &Nbsp;          byte[] buffermd5 = md5. ComputeHash (buffer);                         StringBuilder sbMd5 = new  StringBuilder ();                         for  (int i = buffermd5.length-1;  i >=0 ; i--)  //This place is not the same, reverse order to convert a bit [a train of thought]         {            sbmd5.append (BufferMd5[i]. ToString ("X2"));        }             md5txt2.text = sbmd5.tostring ();    }  3, MD5 32-bit Variant type: if  (!string. IsNullOrEmpty(Inputtxt.text))     {        md5 md5 = md5. Create ();                 byte[ ] buffer = encoding.default.getbytes (Inputtxt.text);                 byte[] buffermd5 = md5. ComputeHash (buffer);                 stringbuilder sbmd5 = new stringbuilder ();                         for   (int i = buffermd5.length - 1; i >= 0; i--)                              {            int x =  Int. Parse (Buffermd5[i]. ToString ());  //First Turn int                                 x -=1  ;//Give it an extension.Sbmd5.append (x.tostring ("X2"));    } Md5txt3.text = Sbmd5.tostring ();           } 4, there are ideas to expand: to provide a way to customize the meaning of the 0~9,a-z, and then MD5 (MD5 (MD5 ($PASS)) and so on ... There are ideas to keep simplifying the code, those who need thousands of lines of dead code implementation of things, a train of thought often only requires hundreds of lines of code o, and more efficient!   Whether it is learning programming or learning infiltration or learning to crack, etc., the idea is very important! Third, source code sharing: 1.0 version of the source code sharing: Http://pan.baidu.com/s/1pJLmraj 1.01 version of the source sharing: Http://pan.baidu.com/s/1hqEaQ0W Four, video sharing: etc ~ ~


This issue is recommended: dnid.v0.12b (check the shell artifact)Next issue: Build your own C # Remote control series software

Small white C # form series-06. MD5 Series Encryption Gadget

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.