Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Response_PasswordSalt Struct Reference

Classes

struct  Response

Public Attributes

optional string password_salt = 1
optional int32 n = 2
optional int32 r = 3
optional int32 p = 4
optional bytes nonce = 5
optional bool needs_migration = 6
optional string scrypt_salt = 7

Member Data Documentation

◆ n

optional int32 Response_PasswordSalt::n = 2

scrypt cost parameters for the verifier. Absent/zero for legacy accounts.

◆ needs_migration

optional bool Response_PasswordSalt::needs_migration = 6

True when the account still uses the legacy password format and should be migrated to the scrypt format after a successful login.

◆ nonce

optional bytes Response_PasswordSalt::nonce = 5

Server-generated challenge. When present the client must authenticate with a challenge-response instead of transmitting the password hash.

◆ p

optional int32 Response_PasswordSalt::p = 4

◆ password_salt

optional string Response_PasswordSalt::password_salt = 1

Salt for the legacy password hash. Pre-challenge clients derive and send that hash from it. For migrated accounts holding a fresh legacy backup this carries the backup's salt so those clients can still log in; clients that speak challenge-response must use scrypt_salt instead when present.

◆ r

optional int32 Response_PasswordSalt::r = 3

◆ scrypt_salt

optional string Response_PasswordSalt::scrypt_salt = 7

Salt of the stored scrypt verifier. Present for migrated accounts; challenge-response clients derive the verifier from this rather than from password_salt, which may carry a legacy backup salt.


The documentation for this struct was generated from the following file: