CookieCloud icon indicating copy to clipboard operation
CookieCloud copied to clipboard

文档有误

Open HeiZiSama opened this issue 1 year ago • 2 comments

解密 md5(uuid+password) 取前16位作为key

实际为 md5(uuid+”-“+password)

HeiZiSama avatar Dec 06 '24 02:12 HeiZiSama

还好底下写了示例函数

HeiZiSama avatar Dec 06 '24 02:12 HeiZiSama

首页文档的描述可以理解为伪代码。 如果需要自定义编码规则,在代码里可以看到具体实现:

  • 前端加密 https://github.com/easychen/CookieCloud/blob/e631fa94f25e58a93f41aff37a3b46e1cd6755e9/extension/function.js#L177-L180

  • 后端解密 https://github.com/easychen/CookieCloud/blob/e631fa94f25e58a93f41aff37a3b46e1cd6755e9/docker/app.js#L91-L99

g8up avatar Oct 01 '25 18:10 g8up