generateKeyPair static method

Future<Map<String, String>> generateKeyPair()

Implementation

static Future<Map<String, String>> generateKeyPair() async {
  final result = await RSA.generate(4096);
  return {'publicKey': result.publicKey, 'privateKey': result.privateKey};
}