md5-hash
v1.0.1
Published
MD5 hashing for string
Downloads
6,260
Readme
MD5-Hash
A very small JS script for implementing md5 hashing.
Installing
npm:
npm install md5-hash
yarn:
yarn add md5-hash
API
md5("String")
- takes
String
params - returns
32-bit
String
Running the package
importing the package (es6 way):
import md5 from 'md5-hash'
md5("String")
with require
statement:
var md5Hash = require("md5-hash")
md5Hash.default("String")
It will return "27118326006d3829667a400ad23d5d98"
.
Does not work without calling default function. Thanks to Mitul Islam.
License
GNU GPL v3.0