Comments (3)
sm3_file()
的逻辑其实很简单,就是把文件 file_get_contents()
出来,然后再跑 sm3()
方法,你可以先按这个步骤解耦自测一下~
不过暂时不推荐用 sm3_file()
这个方法进行文件的摘要算法,因为底层逻辑的问题,图片什么的很容易就会内存溢出,所以 务必 慎用!
from sm3-php.
这个还有问题,ci一直没跑过,最近工作忙暂时还没时间修复
from sm3-php.
我暂时先 revert 到没有 sm3_file
的版本了,我忙完这一阵了抽空更新下,可以先用着 sm3
方法
from sm3-php.
Related Issues (12)
- composer安装失败 HOT 3
- 不能正确处理空白符(空格、回车符等) HOT 4
- 指定密钥加密 HOT 4
- 摘要算法对空格并不支持 HOT 1
- 一个文件多次调用时报错
- sm3_file
- 经测试V1.1.2, V1.1.1结果有误, demo结果也不同 HOT 3
- 重构为使用PHP直接操作二进制的方式 HOT 9
- sm2 sm3 sm4 HOT 1
- 让仓库对 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.