sm_x_crypto 0.0.1
sm_x_crypto: ^0.0.1 copied to clipboard
Chinese Official SM2, SM3, SM4 implementions.
sm_crypto #
该插件项目是实现跨端的SM2,SM3,SM4算法,方便flutter项目中集成.
Getting Started #
从pub.dev 中获取插件 #
sm_crypto: ^0.0.1
代码中进行Api调用 #
import 'sm_crypto_platform_interface.dart';
// 使用公钥进行明文数据加密
SmCrypto sm_crypto = SmCrypto();
var publicKey = "your public Key";
var data = "your origin data for encrypt data";
sm_crypto.sm2EnCryptoUsePublicKey(publicKey, data);
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.