Comments (4)
感谢反馈!
会尝试在即将到来的小版本中修复
from sm3-php.
空格问题已于1.1.1版本修复。确实是由于进行了过滤。
关于待处理字符串中出现换行的说明
值得一提的是,由于算法是按位的,所以在处理不同系统中的换行时,需要区分 LF/CR/CRLF
,
针对这三种系统中的换行,计算出来的值也是不同的。如:
[
["a\na"=>'c413edbaa5449ada676857e243ae8d66401d82474cc68c243950178280bf7ae0'],
["a\ra"=>'75056f768d1ac970ef2faf58ae4be4666afc157e2cb87b9e08c526463bf787da'],
["a\r\na"=>'d1041bb570f8c65e26299159e41e21961d0ce4b79a285ee32c75c11eab0a2dd7']
]
其中,Linux(\n)下的值,与苍墨安全中的计算结果相同。
Windows(\r\n)下、OS X(\n)下和Classic Mac(\r)无对照结果,暂时未测试,欢迎反馈。
@cblk 再次感谢反馈!
from sm3-php.
合并了pr #3 ,感谢贡献!
我再更新个1.1.2的小版本,加上你的PR。
from sm3-php.
1.1.2已 发版,感谢贡献!
from sm3-php.
Related Issues (12)
- composer安装失败 HOT 3
- 指定密钥加密 HOT 4
- 摘要算法对空格并不支持 HOT 1
- 一个文件多次调用时报错
- sm3_file
- 经测试V1.1.2, V1.1.1结果有误, demo结果也不同 HOT 3
- 重构为使用PHP直接操作二进制的方式 HOT 9
- sm2 sm3 sm4 HOT 1
- 为啥我这边输出结果不一致 HOT 3
- 让仓库对 commitizen 友好
- sm3() donnot support Non-ASCII (不支持非ASC码) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sm3-php.