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

关于sign和encrypt字段的问题 #105

Open
ybzou2008 opened this issue Jul 19, 2020 · 3 comments
Open

关于sign和encrypt字段的问题 #105

ybzou2008 opened this issue Jul 19, 2020 · 3 comments

Comments

@ybzou2008
Copy link

wiki地址:https://github.com/c-kzxvldkhX/receiptnotice/wiki/zh-Home
wiki中关于sign字段使用的描述:sign字段 如果加密里选md5,就是md5(md5(type+price) + secretkey),否则就是md5(md5(price + type))
receiptnotice app中的描述:md5加密方法为md5(md5(price + type) + secretkey)
实际测试的结果:如果选择的MD5加密码sign = MD5(MD5(type + money) + secretkey),并且post的数据中没有encrypt字段,如果不选MD5加密码就是MD5(MD5(type + money))

@ybzou2008 ybzou2008 changed the title 关于sign和encrypt字段 关于sign和encrypt字段的问题 Jul 19, 2020
@WeihuaGu
Copy link
Collaborator

WeihuaGu commented Jul 22, 2020

对的,应用中的说明写错了

@ybzou2008
Copy link
Author

ybzou2008 commented Jul 25, 2020 via email

@WeihuaGu
Copy link
Collaborator

当时没加,想的是没有对整个内容加密,只是一个sign字段。但想想不加也不对,我会加上的

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