smx_encrypt
该插件项目是实现跨端的SM2,SM3,SM4算法,方便flutter项目中集成.
Getting Started
从pub.dev 中获取插件
smx_encrypt: ^0.0.1
代码中进行Api调用
import 'sm_crypto_platform_interface.dart';
// 使用公钥进行明文数据加密
SmxEncrypt sm_crypto = SmxEncrypt();
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.