Skip to content

[Question] Are pass phrases required when using GenerateKey()? #308

Open
@derek-price

Description

@derek-price

Our code base was previously using a command line app to generate key pairs. We converted our code to use PGPCore to simplify the process. When importing the old keys into Kleopatra, we are able to encrypt and decrypt a file using the old key pair without using a passphrase. When Kleopatra asks for the pass phrase, clicking OK just works. When doing the same with the PGPCore key pair generated using a null (or empty string) password, Kleopatra is prompting for a pass phrase and will not accept an empty pass phrase despite generating keys with no password.

I generated keys with a pass phrase to prove that encrypting and decrypting works in Kleopatra. I tried PGP versions 4.0.1 and 6.5.1 and both generate keys that require a non-blank pass phrase despite setting the password as null or an empty string.

What am I missing here? I will also add that I have no experience in this area in case this is an obvious issue.

Thanks,
Derek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions