toDecryptRSA static method

Future<String> toDecryptRSA({
  1. required String encryptedText,
})

Implementation

static Future<String> toDecryptRSA({required String encryptedText}) async {
  String rsaEncryptedString = '';
  try {
    rsaEncryptedString = await RSA.decryptPKCS1v15(
        encryptedText, KeyesConfiguration.rsaPrivate!);
  } catch (e) {
    debugPrint('decryptRSA--> Exception');
    rethrow;
  }
  return rsaEncryptedString;
}