MCPcopy Create free account
hub / github.com/develop202/migu_video / getStringMD5

Function getStringMD5

utils/EncryUtils.js:13–20  ·  view source on GitHub ↗

* MD5 加密 * @param {string} str - * @returns {string} -

(str)

Source from the content-addressed store, hash-verified

11 * @returns {string} -
12 */
13function getStringMD5(str) {
14 // 创建 MD5 哈希对象
15 const md5 = crypto.createHash("md5");
16 // 更新数据(默认 UTF-8 编码)
17 md5.update(str);
18 // 生成十六进制哈希值并转为小写
19 return md5.digest("hex").toLowerCase();
20}
21
22/**
23 * base64 加密

Callers 5

androidURL.jsFile · 0.90
getSaltAndSignFunction · 0.90
getAndroidURLFunction · 0.90
getAndroidURL720pFunction · 0.90
refreshTokenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected