Skip to content

youngjuning/wxMD5

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

wxMD5

微信小程序 JavaScript MD5 实现。

使用方法

  1. 下载 md5.js 到项目中
  2. 全局或局部引入:import md5 from 'path/to/md5.js'

API

大部分时候,你只会用到前两种。如果不确定第2到4种的用法,建议用第一种即可

  1. 给定一个字符串,计算得出它的 MD5 哈希值
var hash = md5('value') // "2063c1608d6e0baf80249c42e2be5804"
  1. 给定一个字符串,计算得出它的 HMAC-MD5 哈希值
var hash = md5("value", "key") // "01433efd5f16327ea4b31144572c67f6"
  1. Calculate the raw MD5 hash of a given string value
var hash = md5("value", null, true)
  1. Calculate the raw HMAC-MD5 hash of a given string value and key
var hash = md5("value", "key", true)

感谢

JavaScript-MD5 GitHub stars:JavaScript MD5 implementation. Compatible with server-side environments like node.js, module loaders like RequireJS and all web browsers. 官网:https://blueimp.github.io/JavaScript-MD5/

About

📄基于 blueimp/JavaScript-MD5 的支持小程序的MD5加密库

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published