md5js
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

MD5

a JavaScript function for hashing messages with MD5.

Installation

You can use this package on the server side as well as the client side.

Node.js:

npm install md5js

API

md5(message)

Usage

import { md5 } from 'md5js';
 
console.log(md5('message'));//16位
console.log(md5('message',32));//32位

This will print the following

7d8fd50ed642340b
78e731027d8fd50ed642340b7c9a63b3

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i md5js

    Weekly Downloads

    590

    Version

    1.0.7

    License

    MIT

    Last publish

    Collaborators

    • penyuying