sm2cipher 0.0.6
sm2cipher: ^0.0.6 copied to clipboard

Encrypt and decrypt data use SM2, This is the High level API build amount pointycastle, specify Elliptic curve to SM2 can simplify the api.

example/main.dart

import 'dart:convert';
import 'dart:typed_data';

import 'package:sm2cipher/src/sm2Cipher.dart' as prefix0;

import '../lib/sm2cipher.dart';
import 'package:pointycastle/signers/ecdsa_signer.dart';
import 'package:pointycastle/digests/sha512.dart';

void main() {
  for (var i = 0; i < 20; i++) {
    var kp = prefix0.generateKeyPair();
    print(prefix0.strinifyPublicKey(kp.publicKey));
  }
}
0
likes
120
pub points
15%
popularity

Encrypt and decrypt data use SM2, This is the High level API build amount pointycastle, specify Elliptic curve to SM2 can simplify the api.

Repository (missing)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

base58check, hex, pointycastle

More

Packages that depend on sm2cipher