MadelineProtoDocs/old_docs/API_docs_v29/constructors/passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.md
2020-06-16 17:50:25 +02:00

1.6 KiB

title description image
passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow This key derivation algorithm defines that [SRP 2FA login](https://core.telegram.org/api/srp) must be used 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'];

Or, if you're into Lua:

passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow={_='passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow', salt1='bytes', salt2='bytes', g=int, p='bytes'}