A very small JS script for implementing md5 hashing.
npm:
npm install md5-hash
yarn:
yarn add md5-hash
md5("String")
- takes
String
params - returns
32-bit
String
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.
GNU GPL v3.0