Eppie-io / Eppie-CLI

Command line client for Eppie — an encrypted p2p email
https://eppie.io
Apache License 2.0
32 stars 3 forks source link

Proton Mail account password is rejected #220

Closed ValeraFinebits closed 1 month ago

ValeraFinebits commented 1 month ago

Describe the bug Proton Mail account password is rejected when attempting to log in via the app, despite being correct.

To Reproduce

  1. Open the Eppie-CLI app.
  2. Attempt to link a Proton Mail account.
  3. Enter the correct Proton Mail account email and password. See error message: "Proton: failed to login. Reason: Proof cannot not be calculated. Some data is corrupted or missing."

Expected behavior The app should accept the correct Proton Mail account password and successfully log in.

Additional context The issue seems to be related to the use of very long passwords > 71 symbols.

al-kau commented 1 month ago

There is a limitation for the password inside The Bouncy Castle Cryptography library file: BCrypt.cs; method: BCrypt::Generate

al-kau commented 1 month ago

I didn't find any password limitations in the protonmail bcrypt library. file: bcrypt.go; function: HashBytes file: cipher.go; function: crypt_raw