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

SM3摘要带公钥和UserId #4

Closed
1798972 opened this issue Oct 28, 2021 · 1 comment
Closed

SM3摘要带公钥和UserId #4

1798972 opened this issue Oct 28, 2021 · 1 comment

Comments

@1798972
Copy link

1798972 commented Oct 28, 2021

您好,能扩展下SM3摘要带公钥和UserId的实现吗?

@geyiwei-hub
Copy link
Collaborator

您好,能扩展下SM3摘要带公钥和UserId的实现吗?

你好,SM3算法只是把String算出一个杂凑(Hash)的作用,带公钥和UserId的方式不太理解。是不是业务有要求生成杂凑时需要添加公钥和UserId进去?如果是,可以把公钥、UserId和业务数据放到一起toString()一下,然后算SM3

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

3 participants