Class SrpClient

Hierarchy

  • SrpClient

Constructors

  • Create an SRP client.

    Parameters

    • params: SrpParams

      Group parameters, with .N, .g, .hash

    • salt_buf: Buffer

      User salt (from server)

    • identity_buf: Buffer

      Identity/username

    • password_buf: Buffer

      Password

    • secret1_buf: Buffer

      Client private key {@see genKey}

    • hap: boolean = true

    Returns SrpClient

Methods

  • Checks the server was able to calculate M2. This requires setting the server's public key {@see Client.setB}.

    Parameters

    • M2: Buffer

      The server's M2 value

    Returns void

  • Returns the client's public key (A).

    Returns

    Returns Buffer

  • Returns the shared session key.

    Returns

    Returns Buffer

  • Gets the M1 value. This requires setting the server's public key {@see Client.setB}.

    Returns

    Returns Buffer

  • Sets the server's public key (B).

    Parameters

    • B_buf: Buffer

      The server's public key

    Returns void