Disable insecure "MD5" hash
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: Medium
System Functionality / Data Loss Risk: Moderate
This action improves privacy with minimal impact when you run the recommended script.
This action improves privacy with some impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script disables the use of the MD5
1 2 3 hash algorithm during the SSL/TLS handshake process.
This script only affects the SSL/TLS handshake process. The SSL/TLS handshake is a key part of establishing a secure connection over the internet. By disabling this weak algorithm, the script improves the security of the connection.
This algorithm is vulnerable to collision attacks 4 5. This vulnerability enables attackers to spoof content, perform phishing, or execute man-in-the-middle attacks 6. Consequently, an attacker could intercept or modify data transmitted over what is believed to be a secure connection, without being detected. For instance, attackers could exploit this to divert your payments to their accounts, creating significant risks.
Authorities like NIST (FIPS) 2, Federal Office for Information Security (BSI) 3, Microsoft 6, OWASP 4 7, Internet Engineering Task Force (IETF) 8, Google 9 10, Firefox 11 and OpenVPN 12 classify this algorithm as weak and recommend against its use.
This algorithm is enabled by default on Windows 2.
Disabling this algorithm disallows the following cipher suites:
SSL_CK_DES_192_EDE3_CBC_WITH_MD5
1SSL_CK_DES_64_CBC_WITH_MD5
1SSL_CK_RC4_128_EXPORT40_MD5
1SSL_CK_RC4_128_WITH_MD5
1SSL_RSA_EXPORT_WITH_RC4_40_MD5
2SSL_RSA_WITH_RC4_128_MD5
2SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
2TLS_RSA_EXPORT_WITH_RC4_40_MD5
1 2TLS_RSA_WITH_NULL_MD5
1TLS_RSA_WITH_RC4_128_MD5
1 2TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5
2
This may cause compatibility issues with older devices or software.
This script is only recommended if you understand its implications.
Some non-critical or features may no longer function correctly after running this script.
This script can be fully reversed to restore changes if something goes wrong.
Sources
- MD5. admx.help. (2024).
Original: https://admx.help
Archived: https://web.archive.org/web/20240426090518/https://admx.help/?Category=Schannel&Policy=JMU.Policies.Schannel::MD5 - Restrict cryptographic algorithms and protocols - Windows Server. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-US/troubleshoot/windows-server/certificates-and-public-key-infrastructure-pki/restrict-cryptographic-algorithms-protocols-schannel
Archived: https://web.archive.org/web/20240423073705/https://learn.microsoft.com/en-US/troubleshoot/windows-server/certificates-and-public-key-infrastructure-pki/restrict-cryptographic-algorithms-protocols-schannel - Hilfsmittel zur Umsetzung von Anforderungen des IT Grundschutzes für Windows 10. Bundesamt für Sicherheit in der Informationstechnik. bsi.bund.de. (2024).
Original: https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Grundschutz/Hilfsmittel/Hilfsmittel_Anforderungen_des_IT_Grundschutzes_fuer_Windows_10.pdf
Archived: https://web.archive.org/web/20240402183249/https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Grundschutz/Hilfsmittel/Hilfsmittel_Anforderungen_des_IT_Grundschutzes_fuer_Windows_10.pdf?__blob=publicationFile&v=2 - WSTG - v4.1. OWASP Foundation. owasp.org. (2024).
Original: https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection
Archived: https://web.archive.org/web/20240426090555/https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection - How to Break MD5 and Other Hash Functions. SpringerLink. link.springer.com. (2024).
Original: https://link.springer.com/chapter/10.1007/11426639_2
Archived: https://web.archive.org/web/20240426090632/https://link.springer.com/chapter/10.1007/11426639_2 - Microsoft Security Advisory 2862973. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/security-updates/SecurityAdvisories/2014/2862973
Archived: https://web.archive.org/web/20240426084436/https://learn.microsoft.com/en-us/security-updates/SecurityAdvisories/2014/2862973 - WSTG - v4.2. OWASP Foundation. owasp.org. (2024).
Original: https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/04-Testing_for_Weak_Encryption.html
Archived: https://web.archive.org/web/20240426090632/https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/04-Testing_for_Weak_Encryption.html - RFC 9155: Deprecating MD5 and SHA-1 Signature Hashes in TLS 1.2 and DTLS 1.2. www.rfc-editor.org. (2024).
Original: https://www.rfc-editor.org/rfc/rfc9155.html
Archived: https://web.archive.org/web/20240426090640/https://www.rfc-editor.org/rfc/rfc9155.html - Google Online Security Blog: Modernizing Transport Security. security.googleblog.com. (2024).
Original: https://security.googleblog.com/2018/10/modernizing-transport-security.html
Archived: https://web.archive.org/web/20240426090758/https://security.googleblog.com/2018/10/modernizing-transport-security.html - TLS 1.0 and TLS 1.1 - Chrome Platform Status. chromestatus.com. (2024).
Original: https://chromestatus.com/feature/5759116003770368
Archived: https://archive.ph/2024.04.26-145435/https://chromestatus.com/feature/5759116003770368 - CA:MD5and1024 - MozillaWiki. wiki.mozilla.org. (2024).
Original: https://wiki.mozilla.org/CA:MD5and1024
Archived: https://web.archive.org/web/20240426090747/https://wiki.mozilla.org/CA:MD5and1024 - MD5 Signature Algorithm Support. OpenVPN. openvpn.net. (2024).
Original: https://openvpn.net/faq/md5-signature-algorithm-support
Archived: https://web.archive.org/web/20240426090919/https://openvpn.net/faq/md5-signature-algorithm-support/
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable insecure "MD5" hash" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable insecure "MD5" hash" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable insecure "MD5" hash
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Disable usage of "MD5" hash algorithm for TLS/SSL connections
:: Set the registry value: "HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\MD5!Enabled"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\MD5'; $data = '0'; reg add 'HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Hashes\MD5' /v 'Enabled' /t 'REG_DWORD' /d "^""$data"^"" /f"
Ijo6IFJlc3RvcmUgdXNhZ2Ugb2YgXCJNRDVcIiBoYXNoIGFsZ29yaXRobSBmb3IgVExTL1NTTCBjb25uZWN0aW9uc1xuOjogRGVsZXRlIHRoZSByZWdpc3RyeSB2YWx1ZSBcIkhLTE1cXFNZU1RFTVxcQ3VycmVudENvbnRyb2xTZXRcXENvbnRyb2xcXFNlY3VyaXR5UHJvdmlkZXJzXFxTQ0hBTk5FTFxcSGFzaGVzXFxNRDUhRW5hYmxlZFwiXG5Qb3dlclNoZWxsIC1FeGVjdXRpb25Qb2xpY3kgVW5yZXN0cmljdGVkIC1Db21tYW5kIFwicmVnIGRlbGV0ZSAnSEtMTVxcU1lTVEVNXFxDdXJyZW50Q29udHJvbFNldFxcQ29udHJvbFxcU2VjdXJpdHlQcm92aWRlcnNcXFNDSEFOTkVMXFxIYXNoZXNcXE1ENScgL3YgJ0VuYWJsZWQnIC9mIDI+JG51bGxcIiI=
Help
How to apply or restore "Disable insecure "MD5" hash" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable insecure hashes
- Disable insecure connections
- Improve network security
- Security improvements
This category includes scripts to disable insecure hash algorithms during cryptographic operations. Hash algorithms are essential for internet security, electronic...
This category includes scripts designed to enhance users' security and privacy by disabling outdated or vulnerable connections across the system. It safeguards dat...
This category is dedicated to improving network security. It aims to minimize vulnerabilities by offering various settings that improve the integrity and confident...
This category encompasses a range of scripts designed to improve the security of your system by enforcing security best practices. These scripts help protect your ...
Same Goal
Another guide in Disable insecure hashesSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.