pgpDecrypt function

Future<String> pgpDecrypt({
  1. required String cipherText,
  2. required String privateKeyArmored,
})

Implementation

Future<String> pgpDecrypt({
  required String cipherText,
  required String privateKeyArmored,
}) async {
  try {
    return OpenPGP.decrypt(cipherText, privateKeyArmored, '');
  } catch (e) {
    log('pgpDecrypt Error $e');
    rethrow;
  }
}