decrypt method

  1. @override
void decrypt(
  1. String password
)
override

Decrypts this entry using the given password.

Implementation

@override
void decrypt(String password) {
  if (isDecrypted()) return;

  // TODO: Implement JKS/JCEKS private key decryption
  // This requires:
  // 1. Parse the EncryptedPrivateKeyInfo ASN.1 structure
  // 2. Determine the encryption algorithm (JKS proprietary or JCEKS PBE)
  // 3. Decrypt using the appropriate algorithm
  // 4. Parse the resulting PKCS#8 PrivateKeyInfo
  throw UnimplementedError('Private key decryption not yet implemented');
}