Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

node crypto解密小程序手机号报错是为什么?

错误信息:(每次都说第一次报错,第二次在执行就好了好神奇)

Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (internal/crypto/cipher.js:164:28)
at WXBizDataCrypt.decryptData (/Users/zhangye/Desktop/chanjet/darwin-front-server/app/service/darwinApp/WXBizDataCrypt.js:20:25)
at RegisterService.jiemi (/Users/zhangye/Desktop/chanjet/darwin-front-server/app/service/darwinApp/register.js:105:19)
at RegisterController.jiemi (/Users/zhangye/Desktop/chanjet/darwin-front-server/app/controller/darwinApp/register.js:20:53)
at Object.callFn (/Users/zhangye/Desktop/chanjet/darwin-front-server/node_modules/egg-core/lib/utils/index.js:44:21)
at Object.classControllerMiddleware (/Users/zhangye/Desktop/chanjet/darwin-front-server/node_modules/egg-core/lib/loader/mixin/controller.js:87:20)
at Object.callFn (/Users/zhangye/Desktop/chanjet/darwin-front-server/node_modules/@eggjs/router/lib/utils.js:12:21)
at wrappedController (/Users/zhangye/Desktop/chanjet/darwin-front-server/node_modules/@eggjs/router/lib/egg_router.js:322:18)
at dispatch (/Users/zhangye/Desktop/chanjet/darwin-front-server/node_modules/@eggjs/router/node_modules/koa-compose/index.js:44:32)

image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...