mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
1.5 KiB
1.5 KiB
title | description | nav_exclude | image |
---|---|---|---|
passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow | This key derivation algorithm defines that SRP 2FA login must be used | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow
This key derivation algorithm defines that SRP 2FA login must be used
Attributes:
Name | Type | Required | Description |
---|---|---|---|
salt1 | bytes | Yes | One of two salts used by the derivation function (see SRP 2FA login) |
salt2 | bytes | Yes | One of two salts used by the derivation function (see SRP 2FA login) |
g | int | Yes | Base (see SRP 2FA login) |
p | bytes | Yes | 2048-bit modulus (see SRP 2FA login) |
Type: PasswordKdfAlgo
Example:
$passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow = ['_' => 'passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow', 'salt1' => 'bytes', 'salt2' => 'bytes', 'g' => int, 'p' => 'bytes'];