# `ExGram.Model.EncryptedCredentials`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram.ex#L7240)

Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

Check the [documentation of this model on Telegram Bot API](https://core.telegram.org/bots/api#encryptedcredentials)

- `data`: Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
- `hash`: Base64-encoded data hash for data authentication
- `secret`: Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption

# `t`

```elixir
@type t() :: %ExGram.Model.EncryptedCredentials{
  data: String.t(),
  hash: String.t(),
  secret: String.t()
}
```

# `decode_as`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
