-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
Comments
对的,应用中的说明写错了 |
如果选择的MD5加密,post的数据中没有encrypt字段
…------------------ 原始邮件 ------------------
发件人: "c-kzxvldkhX/receiptnotice" <[email protected]>;
发送时间: 2020年7月22日(星期三) 下午3:21
收件人: "c-kzxvldkhX/receiptnotice"<[email protected]>;
抄送: "X_Craft"<[email protected]>;"Author"<[email protected]>;
主题: Re: [c-kzxvldkhX/receiptnotice] 关于sign和encrypt字段的问题 (#105)
对的,wiki写错了
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
当时没加,想的是没有对整个内容加密,只是一个sign字段。但想想不加也不对,我会加上的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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))
The text was updated successfully, but these errors were encountered: