Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto.js 报错了 #1

Closed
seekwe opened this issue Jun 28, 2018 · 7 comments
Closed

crypto.js 报错了 #1

seekwe opened this issue Jun 28, 2018 · 7 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@seekwe
Copy link

seekwe commented Jun 28, 2018

是否解密问题了

node app.js -p 1630

Server running @ http://0.0.0.0:1630
Proxy HTTP request for: http://music.163.com
crypto.js:170
  var ret = this._handle.update(data, inputEncoding);
                         ^

TypeError: Bad input string
    at Decipheriv.update (crypto.js:170:26)
    at decrypt (/www/wwwroot/qt/UnblockNeteaseMusic/crypto.js:9:22)
    at decryptEapi (/www/wwwroot/qt/UnblockNeteaseMusic/crypto.js:22:9)
    at IncomingMessage.<anonymous> (/www/wwwroot/qt/UnblockNeteaseMusic/proxy.js:86:14)
    at emitNone (events.js:106:13)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
@nondanee
Copy link
Owner

哪一个平台的客户端?

@seekwe
Copy link
Author

seekwe commented Jul 1, 2018

linux下启动,win下使用代码

@nondanee
Copy link
Owner

nondanee commented Jul 1, 2018

用pac自动代理吗?
查一下linux下的node版本
release里有可执行文件也可以运行试试看
我用最新版的windows客户端测过了没问题的

@seekwe
Copy link
Author

seekwe commented Jul 2, 2018

node v8.11.2
这个不行?
还是说因为我windows客户端不是最新的?

@nondanee
Copy link
Owner

nondanee commented Jul 2, 2018

Node8可以恩,客户端版本是多少嘞?

@nondanee
Copy link
Owner

nondanee commented Jul 4, 2018

找了2.0.3版试了下,是因为旧版加密参数末尾有填充%0...,已处理
测试1.9.4现在也可以用了

@seekwe
Copy link
Author

seekwe commented Jul 4, 2018

谢谢啦 O(∩_∩)O哈哈~ (...我用的居然是2.0.2)

@seekwe seekwe closed this as completed Jul 4, 2018
@nondanee nondanee added the good first issue Good for newcomers label Sep 8, 2018
@nondanee nondanee added the bug Something isn't working label Feb 10, 2019
Mydong referenced this issue in Mydong/UnblockNeteaseMusic Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants