The PGPKeyRingGenerator constructor takes in a passphrase to encrypt the private key. What is the algorithm that it uses to do this? It has a field called encAlgorithm, but I couldn’t find any documentation explaining what these algorithms are.
The PGPKeyRingGenerator constructor takes in a passphrase to encrypt the private key. What is
Share
By default, PGP uses IDEA (Refer this).
The other algorithms can be defined in encAlgorithm and following are supported by OpenPGP,
They all use CFB mode with no padding.