MadelineProtoDocs/old_docs/API_docs_v81/constructors/secureCredentialsEncrypted.md

45 lines
1.1 KiB
Markdown
Raw Normal View History

2018-07-12 20:24:55 +02:00
---
title: secureCredentialsEncrypted
description: secureCredentialsEncrypted attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: secureCredentialsEncrypted
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|data|[bytes](../types/bytes.md) | Yes|
|hash|[bytes](../types/bytes.md) | Yes|
|secret|[bytes](../types/bytes.md) | Yes|
### Type: [SecureCredentialsEncrypted](../types/SecureCredentialsEncrypted.md)
### Example:
```php
2018-07-12 20:24:55 +02:00
$secureCredentialsEncrypted = ['_' => 'secureCredentialsEncrypted', 'data' => 'bytes', 'hash' => 'bytes', 'secret' => 'bytes'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "secureCredentialsEncrypted", "data": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```
Or, if you're into Lua:
2018-07-12 20:24:55 +02:00
```lua
2018-07-12 20:24:55 +02:00
secureCredentialsEncrypted={_='secureCredentialsEncrypted', data='bytes', hash='bytes', secret='bytes'}
```