-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
重构为使用PHP直接操作二进制的方式 #18
Comments
我就喜欢造轮子的人。不过php有位运算符,不知道你说的痛点是什么? var_dump(('aa' | 'bbb') === 'ccb'); |
之前纠结于字符串的左移右移和补位,现在已经解决了,是我学艺不精了。 感谢关注! |
大佬把 sm2 sm3 sm4 都加上吧 |
PHP位级别的左移右移都是针对int的,根上都是对于数值的➗进制运算。字符串没法直接左移右移。 |
$str = 'dddd';
$str.= pack('C',1); 嗯 可以加个好友沟通 |
@DongyunLee https://github.com/lizhichao/sm 看了看算法 重写了一个 支持文件 |
拜读了大佬的项目,学到了很多,感谢 👍 |
没找到您的联系方式,可以给个邮箱或者给我profile中的邮箱发个邮件吗? |
qq群 731475644 |
请描述下你需要的功能相关的问题
现在的计算方式太慢了,需要把把二进制转化成可读的十进制数字(1、0)然后再算
请描述下你预期的解决方案
PHP直接操作二进制
额外信息
整个项目全部重构,精简代码
The text was updated successfully, but these errors were encountered: