# `ExSDP.Encryption`
[🔗](https://github.com/membraneframework/ex_sdp/blob/v1.1.4/lib/ex_sdp/encryption.ex#L1)

This module represents the Encryption field of SDP that
stores encryption key or acquisition method of such key.

Session key should be present IFF the transport medium
is secure.

For more details please see [RFC4566 Section 5.12](https://tools.ietf.org/html/rfc4566#section-5.12)

# `methods`

```elixir
@type methods() :: :prompt | :base64 | :clear | :uri
```

# `t`

```elixir
@type t() :: %ExSDP.Encryption{key: binary() | nil, method: methods()}
```

# `parse`

```elixir
@spec parse(binary()) :: {:ok, t()} | {:error, :unsupported_method}
```

---

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