# SHA-2 Support

OvenMediaEngine Enterprise provides the features to select `SHA-2` as the hash algorithm used for `Alert`, `SignedPolicy`, and `AdmissionWebhooks` authentication, in line with the security requirements of enterprise environments.

You can flexibly configure the environment and performance by directly selecting `SHA-256`, `SHA-384`, or `SHA-512` within the Settings (Server.xml) of OvenMediaEngine Enterprise.

## SHA-2 Settings

`SHA-2` is available for use with `<Alert>`, `<SignedPolicy>`, and `<AdmissionWebhooks>`, and can be configured in Server.xml as follows:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<Server version="8">
  ...
  <Alert>
    <HashAlgorithm>SHA-256</HashAlgorithm>
    ...
  </Alert>
  ...
  <VirtualHosts>
    <VirtualHost>
      <SignedPolicy>
        <HashAlgorithm>SHA-256</HashAlgorithm>
        ...
      </SignedPolicy>
      ...
      <AdmissionWebhooks>
        <HashAlgorithm>SHA-256</HashAlgorithm>
        ...
      </AdmissionWebhooks>
      ...
    </VirtualHost>
  </VirtualHosts>
</Server>
```

### Hash Algorithm Values

There are a total of seven `<HashAlgorithm>` values are supported in OvenMediaEngine Enterprise:

#### SHA-1

<table><thead><tr><th width="151">Value</th><th>Expression</th></tr></thead><tbody><tr><td><p>SHA-1</p><p><mark style="color:yellow;">* Default</mark></p></td><td><code>&#x3C;HashAlgorithm></code><strong><code>SHA-1</code></strong><code>&#x3C;/HashAlgorithm></code></td></tr></tbody></table>

#### SHA-2

<table><thead><tr><th width="151">Value</th><th>Expression</th></tr></thead><tbody><tr><td>SHA-224</td><td><code>&#x3C;HashAlgorithm></code><strong><code>SHA-224</code></strong><code>&#x3C;/HashAlgorithm></code></td></tr><tr><td>SHA-256</td><td><code>&#x3C;HashAlgorithm></code><strong><code>SHA-256</code></strong><code>&#x3C;/HashAlgorithm></code></td></tr><tr><td>SHA-384</td><td><code>&#x3C;HashAlgorithm></code><strong><code>SHA-384</code></strong><code>&#x3C;/HashAlgorithm></code></td></tr><tr><td>SHA-512</td><td><code>&#x3C;HashAlgorithm></code><strong><code>SHA-512</code></strong><code>&#x3C;/HashAlgorithm></code></td></tr><tr><td>SHA-512/224</td><td><code>&#x3C;HashAlgorithm></code><strong><code>SHA-512/224</code></strong><code>&#x3C;/HashAlgorithm></code></td></tr><tr><td>SHA-512/256</td><td><code>&#x3C;HashAlgorithm></code><strong><code>SHA-512/256</code></strong><code>&#x3C;/HashAlgorithm></code></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ovenmediaengine-enterprise.gitbook.io/guide/features/access-control-and-security/sha-2-support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
