FlowCrypt / flowcrypt-browser

FlowCrypt Browser extension for Chrome and Firefox
https://flowcrypt.com
Other
372 stars 48 forks source link

Missing RSA key bits reformatting when importing an RSA 2047 private key #5631

Open martgil opened 4 months ago

martgil commented 4 months ago

Description:

When importing an RSA 2047 private key in the FlowCrypt browser extension, an error will occur saying it can be used for encryption and so the importing process will not be completed. As for encrypting message for using that 1 bit off rsa public key, it will throw an error complaining about the public key.

For comparison, the FlowCrypt android app smartly fixed that 1 bit off the 2047 key into a 2048. Ideally, it should also be the case for the FlowCrypt browser extensions for private key & contacts importing processes.

Test PGP key pair I used: 2047.asc.txt

Reference: https://mail.google.com/mail/u/human@flowcrypt.com/#inbox/FMfcgzGxRxKKzgrWRLpPCgKjfvdmTpDt

martgil commented 4 months ago

For me: Test a similar case for the ios counterpart.