Gathering detailed insights and metrics for md5
Gathering detailed insights and metrics for md5
Gathering detailed insights and metrics for md5
Gathering detailed insights and metrics for md5
a JavaScript function for hashing messages with MD5
npm install md5
Typescript
Module System
Node Version
NPM Version
99.6
Supply Chain
98.5
Quality
77.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,601,997,619
Last Day
469,752
Last Week
8,359,858
Last Month
36,259,038
Last Year
394,636,377
BSD-3-Clause License
912 Stars
89 Commits
179 Forks
10 Watchers
8 Branches
16 Contributors
Updated on Jun 28, 2025
Minified
Minified + Gzipped
Latest Version
2.3.0
Package Id
md5@2.3.0
Unpacked Size
20.85 kB
Size
7.57 kB
File Count
9
NPM Version
6.9.0
Node Version
10.16.1
Cumulative downloads
Total Downloads
Last Day
-1%
469,752
Compared to previous day
Last Week
-5.4%
8,359,858
Compared to previous week
Last Month
-3%
36,259,038
Compared to previous month
Last Year
23.9%
394,636,377
Compared to previous year
a JavaScript function for hashing messages with MD5.
node-md5 is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial
You can use this package on the server side as well as the client side.
npm install md5
1md5(message)
message
-- String
, Buffer
, Array
or Uint8Array
String
1var md5 = require('md5'); 2 3console.log(md5('message'));
This will print the following
78e731027d8fd50ed642340b7c9a63b3
It supports buffers, too
1var fs = require('fs'); 2var md5 = require('md5'); 3 4fs.readFile('example.txt', function(err, buf) { 5 console.log(md5(buf)); 6});
Before version 2.0.0 there were two packages called md5 on npm, one lowercase,
one uppercase (the one you're looking at). As of version 2.0.0, all new versions
of this module will go to lowercase md5 on
npm. To use the correct version, users of this module will have to change their
code from require('MD5')
to require('md5')
if they want to use versions >=
2.0.0.
If you encounter any bugs or issues, feel free to open an issue at github.
This package is based on the work of Jeff Mott, who did a pure JS implementation of the MD5 algorithm that was published by Ronald L. Rivest in 1991. I needed a npm package of the algorithm, so I used Jeff’s implementation for this package. The original implementation can be found in the CryptoJS project.
Copyright © 2011-2015, Paul Vorbach.
Copyright © 2009, Jeff Mott.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name Crypto-JS nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 6/12 approved changesets -- score normalized to 5
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More