generateRSAKeys static method

Future<AsymmetricKeyPair<RSAPublicKey, RSAPrivateKey>> generateRSAKeys({
  1. int bitLength = 2048,
})

Implementation

static Future<AsymmetricKeyPair<RSAPublicKey, RSAPrivateKey>> generateRSAKeys(
    {int bitLength = 2048}) async {
  return AsymmetricKeyPair<RSAPublicKey, RSAPrivateKey>(
      RSAPublicKey(BigInt.one, BigInt.one),
      RSAPrivateKey(BigInt.one, BigInt.one, null, null));
}