Skip to content

Commit

Permalink
Set default config.minRSABits to 2047 (#1392)
Browse files Browse the repository at this point in the history
Lower the default allowed RSA key size to ensure that (most) keys generated in
v4 without WebCrypto are supported (see #1336).
  • Loading branch information
larabr committed Aug 19, 2021
1 parent f59b0de commit f57d352
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config/config.js
Expand Up @@ -104,10 +104,12 @@ export default {
*/
checksumRequired: false,
/**
* Minimum RSA key size allowed for key generation and message signing, verification and encryption.
* The default is 2047 since due to a bug, previous versions of OpenPGP.js could generate 2047-bit keys instead of 2048-bit ones.
* @memberof module:config
* @property {Number} minRSABits Minimum RSA key size allowed for key generation and message signing, verification and encryption
* @property {Number} minRSABits
*/
minRSABits: 2048,
minRSABits: 2047,
/**
* Work-around for rare GPG decryption bug when encrypting with multiple passwords.
* **Slower and slightly less secure**
Expand Down

0 comments on commit f57d352

Please sign in to comment.