Proton Drive CLI API Documentation - v0.1.2
    Preparing search index...

    Class SRPClient

    SRP-6a implementation for Proton Drive authentication Adapted from ProtonMail WebClients

    Index

    Constructors

    Methods

    • Compute SRP handshake for authentication

      Parameters

      • username: string

        User's email

      • password: string

        User's password

      • salt: string

        Salt from auth/info (base64)

      • modulus: string

        Modulus from auth/info (base64, PGP-signed)

      • serverEphemeral: string

        Server ephemeral from auth/info (base64)

      • version: number = 4

        Auth version (default 4)

      • OptionalserverUsername: string

      Returns Promise<SRPHandshake>

    • Verify server proof matches expected value

      Parameters

      • serverProof: string

        Proof from server

      • expectedProof: string

        Expected proof calculated during handshake

      Returns boolean