decryptPrivateKey static method

PrivateKeyInterface decryptPrivateKey(
  1. String armored,
  2. String passphrase, [
  3. Iterable<String> subkeyPassphrases = const []
])

Read & unlock OpenPGP private key with the given passphrase.

Implementation

static PrivateKeyInterface decryptPrivateKey(
  final String armored,
  final String passphrase, [
  final Iterable<String> subkeyPassphrases = const [],
]) {
  return PrivateKey.fromArmored(armored).decrypt(
    passphrase,
    subkeyPassphrases,
  );
}