该项目是在 https://github.com/lpilp/phpsm2sm3sm4 的基础上做了简化, 只保留使用php-gmp组件,使用yum直接安装就可,asn1针对本项目进行了降级处理,只使用了\0x30, \0x02,\0x04三种类型,且只解析一层; ecc中只用到了point类 都已独立
- php >=5.6 64位版本
- 打开gmp组件 检测方法 php -m | grep gmp
简单sm2
该项目是在 https://github.com/lpilp/phpsm2sm3sm4 的基础上做了简化, 只保留使用php-gmp组件,使用yum直接安装就可,asn1针对本项目进行了降级处理,只使用了\0x30, \0x02,\0x04三种类型,且只解析一层; ecc中只用到了point类 都已独立
Hi, thank you very much for this great project. I am using it and it works well.
I think we could add more tests to cover the behaviors, if you would agree, I could propose some PRs.
Thank you again.
比如:安装gmp组件这个!
验签如果失败,可以尝试 hex2bin($document); 后传值,即可解决
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.