MadelineProtoDocs/old_docs/API_docs_v82/constructors/secureCredentialsEncrypted.md

41 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2018-12-26 02:56:50 +01:00
---
title: secureCredentialsEncrypted
2019-12-27 17:48:04 +01:00
description: Encrypted credentials required to decrypt [telegram passport](https://core.telegram.org/passport) data.
2018-12-26 02:56:50 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: secureCredentialsEncrypted
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Encrypted credentials required to decrypt [telegram passport](https://core.telegram.org/passport) data.
2018-12-26 02:56:50 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|data|[bytes](../types/bytes.md) | Yes|Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in [decrypting data »](https://core.telegram.org/passport#decrypting-data)|
|hash|[bytes](../types/bytes.md) | Yes|Data hash for data authentication as described in [decrypting data »](https://core.telegram.org/passport#decrypting-data)|
|secret|[bytes](../types/bytes.md) | Yes|Secret, encrypted with the bot's public RSA key, required for data decryption as described in [decrypting data »](https://core.telegram.org/passport#decrypting-data)|
2018-12-26 02:56:50 +01:00
### Type: [SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md)
### Example:
```php
$secureCredentialsEncrypted = ['_' => 'secureCredentialsEncrypted', 'data' => 'bytes', 'hash' => 'bytes', 'secret' => 'bytes'];
```
Or, if you're into Lua:
```lua
secureCredentialsEncrypted={_='secureCredentialsEncrypted', data='bytes', hash='bytes', secret='bytes'}
```