SlideShare a Scribd company logo
MD5 & Hash Encryption
Overview
• Purpose of MD5 and Hash Encryptions
• Examples
• MD5 Algorithm
• Explanation of Possible Security Risks
• Practical Applications Through Code
• Possible Future Security Risks
[location] md5 attr. (word/file)
Attributes:
-s indicates string input, not file!
ex. md5 -s test
-r reverses print of hash/word
ex md5 -r -s test
-q overrides -r, only md5 sum printed
ex md5 -q -s test
-t built-in time test
ex md5 -t
Other Attributes: [-p -x]
Note:
-s must be the last attribute
or it will think everything
past is the string
Macintosh MD5 Terminal
Execution
Windows md5 Command Line
Execution
Not Built In To Windows Command Line
Example
md5sum [filename]
Ex: C:/md5sum test.txt
[Or wherever the md5sum.exe is located]
-b Reads Files In Binary Mode
-c Checks Digest Against Given List
-w Warns About Improperly Formatted md5 Checksums
Difficulty In Cracking
• Md5, with its 128bit encryption algorithm has
1,280,000,000,000,000,000 possible combinations.
• Even if the exact same hash value found, possible other
string combination could have created it.
• It is considered that the md5 message digest would take an
unrealistic time to crack via brute force attack.
MD5 Completely Secure?
It most definitely is a better algorithm than its
predecessors, however, flaws(defects) do allow for exploits
(utilise) to the system.
Although it is likely that there are more than
the two types of cracking techniques that I have
been able to find, I shall only discuss the two most
widely known.
Possible Techniques
• Brute Force (easiest, but success low)
• A brute force attack simply tries all possible
combinations, until it finds the correct solution.
• Collision Checking (harder to implement)
• Collision checking is the attempt to find two
different inputs to the md5 algorithm which
create the same generated hash.
Uses of MD5 Encryption
• Digital Signatures (Authentication)
• Certificates
• One-Way Encryption
• Secure storage of information that does not
need to be deciphered.
Digital Signatures
Possibly the best reason for having an md5
algorithm is for the use of digital signatures. They
allow other people to digitally verify that whatever
document they received is actually authentic and
not tampered with.
Couldn’t find any free software to create
digital signatures, or source code to hardcode it into
any language. Therefore I can’t show any examples
of digital signatures or certificates in use.
Collisions As Security Hazard
Collisions are the main hazard when dealing
with the md5 algorithm, as collisions, or two files
that produce the same hash signature.
To verify a document, a md5 hash of the file is
created and sent along with the document as a certificate.
When the other user receives the file, it is certified to
either be the original, or a tampered with document. This
is done by hashing the file again upon arrival, and
comparing the two hash signatures. If they match, the
document is said to be authentic.
Therefore, if someone were to be able to create
another document with completely different content,
but producing the same hash signature, it would still
be said to be authentic.
Pros/Cons MD5
• Easy to use
• Widely used
• Considered secure
• Difficult to crack
• Is susceptible to brute
force attacks
• Hash collisions is a
known flaw
• Quantum computers
would make such an
algorithm worthless

More Related Content

PDF
The MD5 hashing algorithm
PPTX
Cryptographic hash function md5
PDF
Hashing Algorithm: MD5
PPT
Hash Function & Analysis
PPTX
Information and data security cryptographic hash functions
PPTX
Message Authentication using Message Digests and the MD5 Algorithm
PPTX
Cryptography Ashik
The MD5 hashing algorithm
Cryptographic hash function md5
Hashing Algorithm: MD5
Hash Function & Analysis
Information and data security cryptographic hash functions
Message Authentication using Message Digests and the MD5 Algorithm
Cryptography Ashik

What's hot (20)

PPTX
Cryptography - Simplified - Hash Functions
PDF
MD-5 : Algorithm
PPT
Network security cryptographic hash function
PPTX
Hash function
PPT
Hash crypto
PPTX
Hash function
PPTX
Hash Function
PPTX
Cryptographic Hashing Functions
PPT
01204427-Hash_Crypto (1).ppt
PDF
Hash
PDF
PPTX
Message digest 5
PPTX
Message authentication with md5
PPTX
Hash Function
PDF
The SHA Hashing Algorithm
PDF
A technical writing on cryptographic hash function md5
PPT
PPTX
Network Security(MD5)
Cryptography - Simplified - Hash Functions
MD-5 : Algorithm
Network security cryptographic hash function
Hash function
Hash crypto
Hash function
Hash Function
Cryptographic Hashing Functions
01204427-Hash_Crypto (1).ppt
Hash
Message digest 5
Message authentication with md5
Hash Function
The SHA Hashing Algorithm
A technical writing on cryptographic hash function md5
Network Security(MD5)
Ad

Similar to MD5Algorithm (20)

PPTX
PPTX
Breaking out of crypto authentication
PDF
PPTX
Password cracking
PPTX
Hashing_and_Strings_in_Malware_Analysis_PPT.pptx
PPTX
Encryption in php
PDF
Data encryption algorithm(edit)
PPT
Secure Socket Layer (SSL)
PPTX
Security Training: #2 Cryptography Basics
PPT
Hash crypto
PPT
Hash crypto
PPT
Hash crypto
PPT
Hash crypto
PPT
Hash crypto
PPT
Hash crypto
PDF
Applied cryptanalysis - everything else
PDF
Automatic tool for static analysis
DOC
Cryprography Assignment
PDF
Web cryptography javascript
Breaking out of crypto authentication
Password cracking
Hashing_and_Strings_in_Malware_Analysis_PPT.pptx
Encryption in php
Data encryption algorithm(edit)
Secure Socket Layer (SSL)
Security Training: #2 Cryptography Basics
Hash crypto
Hash crypto
Hash crypto
Hash crypto
Hash crypto
Hash crypto
Applied cryptanalysis - everything else
Automatic tool for static analysis
Cryprography Assignment
Web cryptography javascript
Ad

MD5Algorithm

  • 1. MD5 & Hash Encryption
  • 2. Overview • Purpose of MD5 and Hash Encryptions • Examples • MD5 Algorithm • Explanation of Possible Security Risks • Practical Applications Through Code • Possible Future Security Risks
  • 3. [location] md5 attr. (word/file) Attributes: -s indicates string input, not file! ex. md5 -s test -r reverses print of hash/word ex md5 -r -s test -q overrides -r, only md5 sum printed ex md5 -q -s test -t built-in time test ex md5 -t Other Attributes: [-p -x] Note: -s must be the last attribute or it will think everything past is the string Macintosh MD5 Terminal Execution
  • 4. Windows md5 Command Line Execution Not Built In To Windows Command Line Example md5sum [filename] Ex: C:/md5sum test.txt [Or wherever the md5sum.exe is located] -b Reads Files In Binary Mode -c Checks Digest Against Given List -w Warns About Improperly Formatted md5 Checksums
  • 5. Difficulty In Cracking • Md5, with its 128bit encryption algorithm has 1,280,000,000,000,000,000 possible combinations. • Even if the exact same hash value found, possible other string combination could have created it. • It is considered that the md5 message digest would take an unrealistic time to crack via brute force attack.
  • 6. MD5 Completely Secure? It most definitely is a better algorithm than its predecessors, however, flaws(defects) do allow for exploits (utilise) to the system. Although it is likely that there are more than the two types of cracking techniques that I have been able to find, I shall only discuss the two most widely known.
  • 7. Possible Techniques • Brute Force (easiest, but success low) • A brute force attack simply tries all possible combinations, until it finds the correct solution. • Collision Checking (harder to implement) • Collision checking is the attempt to find two different inputs to the md5 algorithm which create the same generated hash.
  • 8. Uses of MD5 Encryption • Digital Signatures (Authentication) • Certificates • One-Way Encryption • Secure storage of information that does not need to be deciphered.
  • 9. Digital Signatures Possibly the best reason for having an md5 algorithm is for the use of digital signatures. They allow other people to digitally verify that whatever document they received is actually authentic and not tampered with. Couldn’t find any free software to create digital signatures, or source code to hardcode it into any language. Therefore I can’t show any examples of digital signatures or certificates in use.
  • 10. Collisions As Security Hazard Collisions are the main hazard when dealing with the md5 algorithm, as collisions, or two files that produce the same hash signature. To verify a document, a md5 hash of the file is created and sent along with the document as a certificate. When the other user receives the file, it is certified to either be the original, or a tampered with document. This is done by hashing the file again upon arrival, and comparing the two hash signatures. If they match, the document is said to be authentic.
  • 11. Therefore, if someone were to be able to create another document with completely different content, but producing the same hash signature, it would still be said to be authentic.
  • 12. Pros/Cons MD5 • Easy to use • Widely used • Considered secure • Difficult to crack • Is susceptible to brute force attacks • Hash collisions is a known flaw • Quantum computers would make such an algorithm worthless

Editor's Notes

  • #13: http://www.fastsum.com/rfc1321.php