sign method

String sign(
  1. String content
)

签名

Implementation

String sign(String content) {
  List<int> bytes = utf8.encode(content);
  Uint8List uint8List = Uint8List.fromList(bytes);
  return RSASigner(RSASignDigest.SHA256, privateKey: k)
      .sign(uint8List)
      .base64;
}