MadelineProtoDocs/docs/API_docs/constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md
2024-05-01 14:53:46 +02:00

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

Back to constructors index

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'];