PHPackages                             maksymsemenykhin/javascript-md5 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. maksymsemenykhin/javascript-md5

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maksymsemenykhin/javascript-md5
===============================

08JavaScript

Since Dec 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/MaksymSemenykhin/JavaScript-MD5)[ Packagist](https://packagist.org/packages/maksymsemenykhin/javascript-md5)[ RSS](/packages/maksymsemenykhin-javascript-md5/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

JavaScript MD5
==============

[](#javascript-md5)

Demo
----

[](#demo)

[JavaScript MD5 Demo](https://blueimp.github.io/JavaScript-MD5/)

Description
-----------

[](#description)

JavaScript MD5 implementation. Compatible with server-side environments like Node.js, module loaders like RequireJS, Browserify or webpack and all web browsers.

Usage
-----

[](#usage)

### Client-side

[](#client-side)

Include the (minified) JavaScript [MD5](https://en.wikipedia.org/wiki/MD5)script in your HTML markup:

```

```

In your application code, calculate the ([hex](https://en.wikipedia.org/wiki/Hexadecimal)-encoded) [MD5](https://en.wikipedia.org/wiki/MD5) hash of a string by calling the **md5**method with the string as argument:

```
var hash = md5("value"); // "2063c1608d6e0baf80249c42e2be5804"
```

### Server-side

[](#server-side)

The following is an example how to use the JavaScript MD5 module on the server-side with [Node.js](http://nodejs.org/).

Create a new directory and add the **md5.js** file. Or alternatively, install the **blueimp-md5** package with [npm](https://www.npmjs.org/):

```
npm install blueimp-md5
```

Add a file **server.js** with the following content:

```
require("http").createServer(function (req, res) {
    // The md5 module exports the md5() function:
    var md5 = require("./md5"),
    // Use the following version if you installed the package with npm:
    // var md5 = require("blueimp-md5"),
        url  = require("url"),
        query = url.parse(req.url).query;
    res.writeHead(200, {"Content-Type": "text/plain"});
    // Calculate and print the MD5 hash of the url query:
    res.end(md5(query));
}).listen(8080, "localhost");
console.log("Server running at http://localhost:8080/");
```

Run the application with the following command:

```
node server.js
```

Requirements
------------

[](#requirements)

The JavaScript MD5 script has zero dependencies.

API
---

[](#api)

Calculate the ([hex](https://en.wikipedia.org/wiki/Hexadecimal)-encoded) [MD5](https://en.wikipedia.org/wiki/MD5) hash of a given string value:

```
var hash = md5("value"); // "2063c1608d6e0baf80249c42e2be5804"
```

Calculate the ([hex](https://en.wikipedia.org/wiki/Hexadecimal)-encoded) [HMAC](https://en.wikipedia.org/wiki/HMAC)-MD5 hash of a given string value and key:

```
var hash = md5("value", "key"); // "01433efd5f16327ea4b31144572c67f6"
```

Calculate the raw [MD5](https://en.wikipedia.org/wiki/MD5) hash of a given string value:

```
var hash = md5("value", null, true);
```

Calculate the raw [HMAC](https://en.wikipedia.org/wiki/HMAC)-MD5 hash of a given string value and key:

```
var hash = md5("value", "key", true);
```

Tests
-----

[](#tests)

The JavaScript MD5 project comes with [Unit Tests](https://en.wikipedia.org/wiki/Unit_testing).
There are two different ways to run the tests:

- Open test/index.html in your browser or
- run `npm test` in the Terminal in the root path of the repository package.

The first one tests the browser integration, the second one the [node.js](http://nodejs.org/) integration.

License
-------

[](#license)

The JavaScript MD5 script is released under the [MIT license](http://www.opensource.org/licenses/MIT).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f2de0088773baffaa2ece818d09268218560b63eecfb2bf2b6aea14c77364ab?d=identicon)[ftlmars](/maintainers/ftlmars)

---

Top Contributors

[![blueimp](https://avatars.githubusercontent.com/u/244586?v=4)](https://github.com/blueimp "blueimp (47 commits)")[![MaksymSemenykhin](https://avatars.githubusercontent.com/u/10046424?v=4)](https://github.com/MaksymSemenykhin "MaksymSemenykhin (2 commits)")[![Connormiha](https://avatars.githubusercontent.com/u/4091305?v=4)](https://github.com/Connormiha "Connormiha (1 commits)")

### Embed Badge

![Health badge](/badges/maksymsemenykhin-javascript-md5/health.svg)

```
[![Health](https://phpackages.com/badges/maksymsemenykhin-javascript-md5/health.svg)](https://phpackages.com/packages/maksymsemenykhin-javascript-md5)
```

###  Alternatives

[altis/roles-to-taxonomy

WordPress plugin to store user roles and user levels in a taxonomy, for performance.

9444.9k](/packages/altis-roles-to-taxonomy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
