https://github.com/cdimascio/md5-nodejs
A node module that hashes data to MD5.
https://github.com/cdimascio/md5-nodejs
hash md5 md5-hash nodejs
Last synced: about 2 months ago
JSON representation
A node module that hashes data to MD5.
- Host: GitHub
- URL: https://github.com/cdimascio/md5-nodejs
- Owner: cdimascio
- License: mit
- Created: 2018-10-27T13:47:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T17:18:23.000Z (almost 7 years ago)
- Last Synced: 2025-07-03T17:10:21.126Z (3 months ago)
- Topics: hash, md5, md5-hash, nodejs
- Language: JavaScript
- Homepage:
- Size: 303 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# md5-nodejs

A node module that hashes data to MD5
![]()
## Install
```shell
npm install md5-nodejs
```## Usage
```javascript
const md5 = require('md5-nodejs');
const hash = md5('data to hash');
```### Hash Anything!
Here are some examples#### Hash strings
```javascript
const hash = md5('string to hash');
```
#### Hash buffers
```javascript
const hash = md5(Buffer.from('carmine'));
```
#### Hash TypedArrays
```javascript
const int16Array = new Int16Array(2);
int16Array[0] = 42;
const hash = md5(int16Array);
```#### Hash objects
```javascript
const hash = md5({
name: 'carmine'
});
```#### Hash arrays
```javascript
const hash = md5(['hash', 'this', 'array']);
```#### Hash primitives
```javascript
const hash = md5(3.14159265359);
const hash = md5(true);
```## License
[MIT](LICENSE)