update: 使用 crypto-js 重构 crypto 部分

This commit is contained in:
binaryify
2024-04-25 15:19:28 +08:00
parent d55fb43f0a
commit 2bb5269dfa
7 changed files with 16 additions and 19 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
// 注册账号
const crypto = require('crypto')
const CryptoJS = require('crypto-js')
module.exports = (query, request) => {
query.cookie.os = 'pc'
const data = {
captcha: query.captcha,
phone: query.phone,
password: crypto.createHash('md5').update(query.password).digest('hex'),
password: CryptoJS.MD5(query.password).toString(),
nickname: query.nickname,
countrycode: query.countrycode || '86',
}