• Jerry on PieFed@feddit.online
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    7 hours ago

    Proton stores your encrypted private key . An encrypted private key does not allow them to read your email or files.

    When you log into a new device:
    Proton sends the encrypted private key to your device.
    You type your password.
    ** Your device** (not Proton’s server) uses the password to decrypt the private key locally in your browser or app memory.

    That decrypted key is then used to decrypt your emails on your device. Proton mail sends you just the encrypted text.

    There is one potential security issue:

    Since Proton serves the website code (HTML/JavaScript) that performs the encryption, you have to trust that they serve you honest code. Proton could theoretically alter their website code to capture your password the next time you log in, which theoretically a government can force them to do.

    However, this is a different threat than “they have the keys.” Currently, they possess the keys only in a form they mathematically cannot unlock.

    • Orygin@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      7 hours ago

      If the key is the same password you use to login, then they already have the key. They may not store it unhashed, but you transmit it to them every time you login. If law enforcement forces Proton, or if Proton turns evil (or gets infiltrated by a three letter agency), they can use it from the auth to decrypt your key and your data.
      Plus, a bad actor having access to the encrypted key is free to brute force it. It may be hard but not guaranteed to stay hard forever.

      • Jerry on PieFed@feddit.online
        link
        fedilink
        English
        arrow-up
        4
        ·
        6 hours ago

        You don’t send them the password. The password never leaves your device. The password is the decryption key to decrypt your encrypted private key, which is what they send to your device. This is why, for Proton Mail, and others that use this technique, it is imperative to have a strong password to protect your private key.

        • Orygin@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          5 hours ago

          How do they authenticate* you? They just send the encrypted key and if you can decrypt it then it’s you?
          If so I can request any account encrypted key and try to brute force it offline