【笔记】Nodejs计算字符串的MD5值 发表于 2023-07-07 更新于 2024-04-30 阅读次数: 前言Nodejs计算字符串的MD5值 引入模块1const crypto = require('crypto'); 如果项目中包含同名模块1const crypto = require('node:crypto'); 计算字符串的MD5值12const md5 = crypto.createHash("md5");const result = md5.update("字符串").digest("hex"); 完成参考文献博客园——chyingp