#php #sm2 #national #chinese #standard #package #cargo

cncs-sm2-php

Chinese National Cryptography Standard - SM2 PHP

3 releases

0.1.2 Mar 11, 2022
0.1.1 Mar 11, 2022
0.1.0 Dec 25, 2021

#1674 in Development tools

Apache-2.0 OR MIT

30KB
653 lines

cncs-sm2-php

Dev

Ref https://davidcole1340.github.io/ext-php-rs/

sudo pacman -S php clang

cargo install cargo-php
cargo build --release -p cncs-sm2-php

php -dextension=../target/release/libcncs_sm2_php.so test.php

Dependencies

~5.5–8.5MB
~174K SLoC