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

[Feature Request] 封面能不能跟正文一样加个图片解密 #2313

Closed
iyhkhtrk opened this issue Sep 20, 2022 · 6 comments
Closed

[Feature Request] 封面能不能跟正文一样加个图片解密 #2313

iyhkhtrk opened this issue Sep 20, 2022 · 6 comments
Labels
冷门 F3.这个需求面向的用户很少 已解决 已解决 需求 F.用户提出的功能意见

Comments

@iyhkhtrk
Copy link
Contributor

iyhkhtrk commented Sep 20, 2022

功能描述(请清晰的、详细的描述你想要的功能)

有些源的封面要解密才能显示,例如这个源

期望实现方式(阅读应该如何实现该功能)

跟正文的图片解密一样

附加信息(其他的与功能相关的附加信息)

http://www.yckceo.com/d/67sBz

效果演示(可以手绘一些草图,或者提供可借鉴的图片)

@iyhkhtrk iyhkhtrk added the 需求 F.用户提出的功能意见 label Sep 20, 2022
@Xwite
Copy link
Collaborator

Xwite commented Sep 20, 2022

单个图片可以解密后生成DataURL

let url = result;

//添加type字段 java.ajax返回HexString
hex = java.ajax({url},{type:"jpg"});

//利用java.downloadFile java.readFile读取bytes
path = java.downloadFile(url);
bytes = java.readFile(path);
//解密完成后可以删除下载的文件
java.deleteFile(path)

function decode2Base64(){
//解密实现
}
`data:base64,${decode2Base64()}`

@Xwite Xwite added the 冷门 F3.这个需求面向的用户很少 label Sep 20, 2022
@iyhkhtrk
Copy link
Contributor Author

谢谢大佬,学会了

@iyhkhtrk
Copy link
Contributor Author

大佬,用封面解密之后有部分图片不能显示,用之前的写法就可以
Screenshot_20220921_111703

@iyhkhtrk iyhkhtrk reopened this Sep 21, 2022
@Xwite
Copy link
Collaborator

Xwite commented Sep 21, 2022

应该是缓存了
打开调试看看

@iyhkhtrk
Copy link
Contributor Author

调试没有报错

@iyhkhtrk
Copy link
Contributor Author

清理缓存之后好了,谢谢大佬

@Xwite Xwite added the 已解决 已解决 label Sep 23, 2022
Repository owner locked and limited conversation to collaborators Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
冷门 F3.这个需求面向的用户很少 已解决 已解决 需求 F.用户提出的功能意见
Projects
None yet
Development

No branches or pull requests

2 participants