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

新参数 device_meta & dt #179

Open
lzghzr opened this issue Sep 22, 2020 · 8 comments
Open

新参数 device_meta & dt #179

lzghzr opened this issue Sep 22, 2020 · 8 comments

Comments

@lzghzr
Copy link
Collaborator

lzghzr commented Sep 22, 2020

APP随机生成128位密钥, 并使用此密钥作为key及iv对设备指纹信息 (包括但不限于adid, applist, battery, free_memory, mac, screen等90多种设备信息) 做AES/CBC/PKCS5Padding对称加密, 最终生成hex字符串作为device_meta

接着再使用通过https://passport.bilibili.com/api/oauth2/getKey获取的公钥, 对之前随机生成的128位密钥做RSA/ECB/PKCS1Padding非对称加密, 最终生成base64字符串作为dt

新版app更新提示已经确认2020年09月28日强制更新, 届时可能无法提供这两个参数的请求均视为无效, 希望程序没事

@lzghzr lzghzr pinned this issue Sep 22, 2020
@XY-346
Copy link

XY-346 commented Oct 9, 2021

device_info 加密 和dt 加密都貌似不行

@lzghzr
Copy link
Collaborator Author

lzghzr commented Oct 9, 2021

device_info 加密 和dt 加密都貌似不行

又改了吗?

@XY-346
Copy link

XY-346 commented Oct 9, 2021

{"code":-400,"message":"请求错误","ttl":1,"data":{"guest_id":-2}}

@XY-346
Copy link

XY-346 commented Oct 9, 2021

device_info 洗和dt都觉得不行

又改了吗?

没想到你竟然在 还回复的这么快 感恩大佬

@lzghzr
Copy link
Collaborator Author

lzghzr commented Oct 9, 2021

{"code":-400,"message":"请求错误","ttl":1,"data":{"guest_id":-2}}

试了一下没问题,你可以检查一下是不是请求参数不全

@XY-346

This comment has been minimized.

@XY-346
Copy link

XY-346 commented Oct 9, 2021

我测试还是这样的 能发下 _AES加密的 key 和 JSON.stringify的加密明文吗

@lzghzr
Copy link
Collaborator Author

lzghzr commented Oct 11, 2021

我测试还是这样的 能发下 _AES加密的 key 和 JSON.stringify的加密明文吗

这个请求和登录一样是RAS加密的,AES加密key在本地随机生成

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants