The Research and Performance Optimization of MD5
- Author
- LuLinLin
- Advisor
- HuLiang
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TN918.1 Theory
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 565
- Citations
- 8
Abstract
The original computer applications usually had no or fewsecurity, because the systems of then were exclusive and close,in a brief,though computers did exchange the data and information,the network formed was completely under control by theirorganization. At that time, the communication protocols betweencomputers is not public either, preventing others to access theinformation exchanged. Thus the information secure was not aproblem then and the situation lasted for many years, till datasecurity was realized.In nowadays, the information society, the research ofcommunication secure is not only required for military, politicalor diplomacy use, but also in research of science and techniqueor commerce. Therefore information is compared to life, time andwealth. Due to the sharing and pervasion of information wouldgreatly affect the society, so to keep information security is anemergency in information time. Along with the history flowing into21st Century, information security is more and more highlyrequired, and the protection of information security is more andmore highly expected.Nowadays, as information security is regarded as the importantproblem by the society, Cryptography is paid more and moreattention. Cryptography mainly cares about secrecy incommunication. Encrypting the transmitting data could preventothers from stealing important information, but this only solvesthe problem on the one hand, as for how to prevent them fromdestroying important data, to ensure the dealer identification orto abstain denying when dissension is occurred would be additionalproblems. We apply digital signature in use. Digital signature isa further application beyond data encryption. Digital signatureis always companioned with Hash functions, which is a kernel ofmodern Cryptography. The most common Hash methods are MD5, SHA andSnefru. MD5 is a typical Hash encryption technique and it is quitepopular. In the paper we made a research on MD5 to optimize therealization.The full name of MD5 is Message-Digest Algorithm 5. It is ahash algorithm to generate digital signatures. MD5 is irreversiblearithmetic, which means doing reversing to cipher text will leadto infinitude reverses. It was proposed at the beginning of 90’sby Ronald L. Rivest from MIT Laboratory for Computer Science andRSA Data Security Inc, through MD2, MD3 and MD4. The algorithm wasdesigned to compress big block of information to a secret formbefore signing with private key, which is to transform a randomlength bit sequence with an irreversible string to a certain lengthof 128 bit big integer. In other words, having seen the source codeand the algorithm description, one still cannot function backwardsfrom a MD5 value to the original sequence. MD5 is widely used inelectric business, encryption and decryption, information login,database and file system integrity.After getting to know MD5, we introduce the MD5 main functionto realize the testing program of file manipulation. We also adda timing function to record the time cost for manipulation, so asto obtain MD5 manipulate rate according to different file size.As we all know, two important parameters to value an encryptionfunction is the intensity and the speed. The encryption intensityis the basic essence of encryption arithmetic and the abilityagainst varies attacks. In most applications, beyond certainencryption intensity, encryption/decryption speed is the mostimportant property, especially for high speed required systems.The encryption speed is determined originally by the design of analgorithm, but it can be optimized by using varies tips to bringthe potential into play. In the 3rd chapter of the paper, on thebase of behavior analysis with the MD5, we gave some effectiveoptimizing methods for MD5 algorithm, such as outspreadingencryption circulation, collaboration and paralleling optimizing,memory copy optimizing, reducing iterating times, optimizingarray diversion functions, embedding compilation language andaccommodating different operation systems. We also gave out theexample of optimizing and the measure result, on the platform ofIntel Pentium 4CPU/WindowsXP/IE 6.0. The result shows the speedof MD5 algorithm was for sure improved by the application ofoptimizing methods.During the course of analyzing and optimizing the MD5 algorithm,we learned that varies encryption algorithms, computer conditions,compilers and operation systems could all impact on the speed, sowe must determine suitable strategy in applying optimizing methodsso as to improve speed to the greatest extent.
Table of contents
The first chapter 7-13
1.1 Information Security 7 password
1.2 technology 7-13
1.2.1 the cryptography Background 7-8
1.2.2 Encryption and decryption 8
1.2.3 symmetric key algorithm 8-9
1.2.4 public key algorithms 9-10
1.2.5 Digital Signature the 10-12
1.2.6 The main work of this article 12-13
Chapter II of the MD5 algorithm 13-32
2.1-way hash function 13-15
2.1.1-way hash function basic principle 13-14
2.1 .2 hash value length 14-15
2.2 MD5 algorithm introduced 15-19
2.2.1 MD5 About 15-16 <br / 2.2.2 MD5 applications 16-19
2.3 MD5 algorithm's basic principle 19-27
2.4 MD5 algorithm 27-29 <br / > 2.5 MD5 algorithm security
2.6 29-30 other hash algorithms Profile 30-32
2.6.1 SHA 30
2.6. Snefru the 30-32
Chapter MD5 algorithm performance analysis and optimization 32-47
the 3.1 encryption algorithm to optimize the importance 32-33
3.1.1 encryption algorithm general computing feature the 32-33 3.1.2 contemporary CPU characteristics
nbsp 33
3.1.3 language selection; 33 < br /> 3.2 principles to improve the algorithm speed the 33-35 3.2.1 Expand the encryption cycle and function
34
3.2.2 in the inner loop to avoid the use of conditional jump instructions 34
3.2.3 variable length CPU internal registers length 34
3.2.4 limit variable number of 34-35
3.2.5 avoid using the time-consuming instruction 35
3.3 Methods and Results the 35-47 3.3.1 Expand encryption cycle
35-36
3.3. the parallel collaboration and optimize 36-37
3.3.3 memory copy optimization 37-38
3.3.4 reduce the number of iterations of the algorithm 38-40
the 3.3.5 conversion function optimization nbsp array; the 40-42 assembly language
3.3.6 embedded the 42-46 3.3.7 operating system
46 -47
Chapter Summary and Outlook 47-48
References 48-50
Summary 50-52
Abstract 52-55
Acknowledgements 55-56
mentor and author 56
Related dissertations
- Research on the Improvement of the Performance Appraisal System for the Dispatching Labors of Changsha Mobile Communication Company
- Research on Performance Management of the Credit Cooperation in Shandongacounty
- The Research of Data Warehouse Performance Optimization Technology Based on the Coupling Index and Materialized View
- Uncertain Construction and Optimization of Reverse Logistics System
- Research on Parallel Computing Technology in Loudi Region Analysis of Soil and Water Loss in the Processing of Application
- Research on Performance Testing and Optimization Based on Massive Data Storage
- Research on Key Techniques on Design of Data-driven Asynchronous Microprocessors
- Optimization Design and Implementation of the ICS Terminal
- A Theoretical Analysis of the Lifetime and Energy Hole in Cluster Based Wireless Sensor Networks
- The Research of of ZigBee Network Structure of the Network Construction and the Method of Performance Optimization
- Heat Transfer Characteristics and Mechanism Research of the Rmoelectric Generator
- Research on the Recovery of the Waste Heat of Condensation Water in Power Plant
- Component Based Highway E-information Management System
- Research on Preparation and Performance of New Type High Performance Lightweight Aggregate Concrete Based on Inorganic Polymer Cement
- Design and Experimental Study of Four-effect Distillation Solar Desalination System
- Optimization of purchasing logistics management system case study of Jiangsu Mobile
- Research on Incurrence-Effect of Firm Performance Optimization Based on Panel Model
- Study on Performance Evaluation and Optimization of University Industry Cooperation in Rizhao City——Revenue Maximization as Driven Sources
- Research on Optimization and Fault Diagnosis of Wireless Sensor Networks Based on Artificial Immune System
- Piecewise Aggregation and Optimized Design of Switched Linear Systems