All pages
Powered by GitBook
1 of 1

Loading...

Connecting via sha256_password

The sha256_password plugin manages authentication using SHA-256 encryption, supporting both clear text passwords over SSL and RSA encrypted password exchange.

Overview

SHA256 authentication possible exchanges:

  • if connection use SSL (SSLRequest Packet sent):

    • Client sends a .

  • Else:

    • If client doesn't know server RSA public key:

      • Client sends a .

      • Server sends a .

Authentication

Client Clear Password Answer

  • password without encryption.

Public key request

  • fixed 0x01 value.

Public key response

  • fixed 0x01 value.

  • public key data.

RSA encrypted password

  • RSA encrypted password.

RSA encrypted value of XOR(password, seed) using server public key (RSA_PKCS1_OAEP_PADDING).

This page is licensed: CC BY-SA / Gnu FDL

Client sends an RSA encrypted password.

  • Ends with server sending either OK_Packet , ERR_Packet.

  • clear password answer
    public key request
    public key response
    string
    byte<1>
    byte<1>
    byte
    byte<256>